Message ID | 243f0cadb778fb5186d026bf0900fde56487e636.1498132599.git.christophe.leroy@c-s.fr |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show |
On Fri, Jun 23, 2017 at 02:57:42PM +0200, Christophe Leroy wrote: > For processors whose core runs at twice the bus frequency, > the fallback frequency calculation in Linux provides a wrong > result. Therefore, U-boot needs to pass the correct value. > > Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Reviewed-by: Tom Rini <trini@konsulko.com>
Dear Christophe Leroy, In message <243f0cadb778fb5186d026bf0900fde56487e636.1498132599.git.christophe.leroy@c-s.fr> you wrote: > For processors whose core runs at twice the bus frequency, > the fallback frequency calculation in Linux provides a wrong > result. Therefore, U-boot needs to pass the correct value. > > Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> > --- > arch/powerpc/cpu/mpc8xx/fdt.c | 2 ++ > 1 file changed, 2 insertions(+) Does not apply: 'arch/powerpc/cpu/mpc8xx/fdt.c': No such file or directory Naked-by: Wolfgang Denk <wd@denx.de> Best regards, Wolfgang Denk
diff --git a/arch/powerpc/cpu/mpc8xx/fdt.c b/arch/powerpc/cpu/mpc8xx/fdt.c index 34d36478d3..5688671fba 100644 --- a/arch/powerpc/cpu/mpc8xx/fdt.c +++ b/arch/powerpc/cpu/mpc8xx/fdt.c @@ -20,6 +20,8 @@ void ft_cpu_setup(void *blob, bd_t *bd) "bus-frequency", bd->bi_busfreq, 1); do_fixup_by_prop_u32(blob, "device_type", "cpu", 4, "clock-frequency", bd->bi_intfreq, 1); + do_fixup_by_compat_u32(blob, "fsl,pq1-soc", "clock-frequency", + bd->bi_intfreq, 1); do_fixup_by_compat_u32(blob, "fsl,cpm-brg", "clock-frequency", gd->arch.brg_clk, 1);
For processors whose core runs at twice the bus frequency, the fallback frequency calculation in Linux provides a wrong result. Therefore, U-boot needs to pass the correct value. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> --- arch/powerpc/cpu/mpc8xx/fdt.c | 2 ++ 1 file changed, 2 insertions(+)