projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70fd071
)
powerpc, 8xx: Properly set CPM frequency in the device tree
author
Christophe Leroy
<
[email protected]
>
Thu, 6 Jul 2017 08:33:19 +0000
(10:33 +0200)
committer
Tom Rini
<
[email protected]
>
Sat, 8 Jul 2017 19:55:37 +0000
(15:55 -0400)
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 <
[email protected]
>
Reviewed-by: Heiko Schocher <
[email protected]
>
arch/powerpc/cpu/mpc8xx/fdt.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc8xx/fdt.c
b/arch/powerpc/cpu/mpc8xx/fdt.c
index 88ee1c502c4af1c8292a56d987224ce7e2487bb9..f9b74ded5a3b436e69131e1e360d537d7f15610d 100644
(file)
--- 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);