From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sylvain Munaut Date: Thu, 16 Nov 2006 09:45:58 +0100 Subject: [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals In-Reply-To: <20061106212007.8A923353C4E@atlas.denx.de> References: <20061106212007.8A923353C4E@atlas.denx.de> Message-ID: <455C2546.4050600@246tNt.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > In message <1162846858442-git-send-email-grant.likely@secretlab.ca> you wrote: > >> The soc node of the mpc52xx needs to be loaded with the IPB bus frequency, >> not the XLB frequency. >> > ... > > >> p = ft_get_prop(blob, "/cpus/" OF_CPU "/bus-frequency", &len); >> if (p != NULL) >> - *p = cpu_to_be32(clock); >> + *p = cpu_to_be32(bd->bi_busfreq); >> > > "/bus-frequency" ==> bi_busfreq. OK. > > >> p = ft_get_prop(blob, "/" OF_SOC "/bus-frequency", &len); >> if (p != NULL) >> - *p = cpu_to_be32(clock); >> + *p = cpu_to_be32(bd->bi_ipbfreq); >> > > "/bus-frequency" ==> bi_ipbfreq. ??? > FWIW, Looks good to me and it's a requirement for the new arch/powerpc that's coming soon. Signed-off-by: Sylvain Munaut Sylvain