Skip to content
Snippets Groups Projects
Commit 6f65e75a authored by Christophe Leroy's avatar Christophe Leroy Committed by Tom Rini
Browse files

powerpc, 8xx: Properly set CPM frequency in the device tree


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: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
parent 70fd0710
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,8 @@ void ft_cpu_setup(void *blob, bd_t *bd) ...@@ -20,6 +20,8 @@ void ft_cpu_setup(void *blob, bd_t *bd)
"bus-frequency", bd->bi_busfreq, 1); "bus-frequency", bd->bi_busfreq, 1);
do_fixup_by_prop_u32(blob, "device_type", "cpu", 4, do_fixup_by_prop_u32(blob, "device_type", "cpu", 4,
"clock-frequency", bd->bi_intfreq, 1); "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", do_fixup_by_compat_u32(blob, "fsl,cpm-brg", "clock-frequency",
gd->arch.brg_clk, 1); gd->arch.brg_clk, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment