From: Kumar Gala Date: Wed, 23 Sep 2009 09:13:15 -0700 Subject: [U-Boot] mpc85xx: Put SDHC clock-frequency in device tree In-Reply-To: <1253689932-8465-1-git-send-email-B22826@freescale.com> References: <1253689932-8465-1-git-send-email-B22826@freescale.com> Message-ID: <122D5F57-48CF-40A3-AB06-DBE1763DEE05@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sep 23, 2009, at 12:12 AM, Gao Guanhua wrote: > 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); > We do this in fdt_fixup_esdhc() - k