From: Gao Guanhua Date: Wed, 23 Sep 2009 15:12:12 +0800 Subject: [U-Boot] mpc85xx: Put SDHC clock-frequency in device tree Message-ID: <1253689932-8465-1-git-send-email-B22826@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The clock-frequency of SD controller comes from different source on different platform. We add a clock-frequency property in dts file and set the value in u-boot. --- cpu/mpc85xx/fdt.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/cpu/mpc85xx/fdt.c b/cpu/mpc85xx/fdt.c index 26a8f48..e549c66 100644 --- a/cpu/mpc85xx/fdt.c +++ b/cpu/mpc85xx/fdt.c @@ -328,5 +328,11 @@ void ft_cpu_setup(void *blob, bd_t *bd) ft_fixup_cpu(blob, (u64)bd->bi_memstart + (u64)bd->bi_memsize); #endif +#ifdef CONFIG_FSL_ESDHC + do_fixup_by_compat_u32(blob, "fsl,esdhc", + "clock-frequency", bd->bi_busfreq/2, 1); +#endif + + ft_fixup_cache(blob); } -- 1.6.4