summaryrefslogtreecommitdiff
path: root/cpu/mpc86xx/fdt.c
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2008-07-09 13:23:05 -0400
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-07-14 18:56:51 -0500
commit71074abbe0c76429577aff58aeff0a24ad210b23 (patch)
tree4652ac4855c0b07ca8d4de2f7fcec061898af6f7 /cpu/mpc86xx/fdt.c
parent24ef76f320fbadf074105229826514db140f939f (diff)
downloadu-boot-imx-71074abbe0c76429577aff58aeff0a24ad210b23.zip
u-boot-imx-71074abbe0c76429577aff58aeff0a24ad210b23.tar.gz
u-boot-imx-71074abbe0c76429577aff58aeff0a24ad210b23.tar.bz2
8xxx-fdt: set ns16550 clock from CFG_NS16550_CLK, not bi_busfreq
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>
Diffstat (limited to 'cpu/mpc86xx/fdt.c')
-rw-r--r--cpu/mpc86xx/fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mpc86xx/fdt.c b/cpu/mpc86xx/fdt.c
index 379306e..80a5c78 100644
--- a/cpu/mpc86xx/fdt.c
+++ b/cpu/mpc86xx/fdt.c
@@ -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
}