]> git.sur5r.net Git - u-boot/commitdiff
8xxx-fdt: set ns16550 clock from CFG_NS16550_CLK, not bi_busfreq
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 9 Jul 2008 17:23:05 +0000 (13:23 -0400)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Mon, 14 Jul 2008 23:56:51 +0000 (18:56 -0500)
Some boards that have external 16550 UARTs don't have a direct
tie between bi_busfreq and the clock used for the UARTs.  Boards
that do have such a tie should set CFG_NS16550_CLK to be
get_bus_freq(0) -- which most of them do already.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cpu/mpc83xx/fdt.c
cpu/mpc85xx/fdt.c
cpu/mpc86xx/fdt.c

index 267ae6adc53a0c0563f0e8cd290e3c7d71e21fbd..fda85c15d0e572e63828f6a16b28a1dc33d12375 100644 (file)
@@ -78,7 +78,7 @@ void ft_cpu_setup(void *blob, bd_t *bd)
 
 #ifdef CFG_NS16550
        do_fixup_by_compat_u32(blob, "ns16550",
-               "clock-frequency", bd->bi_busfreq, 1);
+               "clock-frequency", CFG_NS16550_CLK, 1);
 #endif
 
        fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
index c8d2c6ac22066419106bce85c9e4544c5ad70bde..c159934c5b24630e6c906a748e3dead91e0a9252 100644 (file)
@@ -229,7 +229,7 @@ void ft_cpu_setup(void *blob, bd_t *bd)
 
 #ifdef CFG_NS16550
        do_fixup_by_compat_u32(blob, "ns16550",
-               "clock-frequency", bd->bi_busfreq, 1);
+               "clock-frequency", CFG_NS16550_CLK, 1);
 #endif
 
 #ifdef CONFIG_CPM2
index 379306ea4f302ff51d5371a73e531b9bcbb48d94..80a5c78a79436c2c98721b9666b21008a82fbcfc 100644 (file)
@@ -30,6 +30,6 @@ void ft_cpu_setup(void *blob, bd_t *bd)
 
 #ifdef CFG_NS16550
        do_fixup_by_compat_u32(blob, "ns16550",
-                              "clock-frequency", bd->bi_busfreq, 1);
+                              "clock-frequency", CFG_NS16550_CLK, 1);
 #endif
 }