summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDongsheng.wang@freescale.com <Dongsheng.wang@freescale.com>2013-01-30 18:51:52 +0000
committerAndy Fleming <afleming@freescale.com>2013-05-02 16:56:42 -0500
commitf5c2623d80d72e397f1d6211b9691f7580461166 (patch)
treedcc218778d9e1bc0e0fd2aa33be62cae87772fee /arch
parent3c1bfc04c6292070ac4bd0a39976a3dbe6f00aa0 (diff)
downloadu-boot-imx-f5c2623d80d72e397f1d6211b9691f7580461166.zip
u-boot-imx-f5c2623d80d72e397f1d6211b9691f7580461166.tar.gz
u-boot-imx-f5c2623d80d72e397f1d6211b9691f7580461166.tar.bz2
powerpc/mpc85xx: add setting of clock-frequency for mpic node
Set the device tree property associated with the mpic source frequency. The frequency is used for mpic timer. Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/cpu/mpc85xx/fdt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c
index 24eb978..6f8d09e 100644
--- a/arch/powerpc/cpu/mpc85xx/fdt.c
+++ b/arch/powerpc/cpu/mpc85xx/fdt.c
@@ -663,6 +663,11 @@ void ft_cpu_setup(void *blob, bd_t *bd)
#ifdef CONFIG_FSL_CORENET
do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-1.0",
"clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
+ do_fixup_by_compat_u32(blob, "fsl,mpic",
+ "clock-frequency", get_bus_freq(0)/2, 1);
+#else
+ do_fixup_by_compat_u32(blob, "fsl,mpic",
+ "clock-frequency", get_bus_freq(0), 1);
#endif
fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);