]> git.sur5r.net Git - u-boot/commit
powerpc/85xx: fix broken cpu "clock-frequency" property
authorLaurentiu TUDOR <Laurentiu.Tudor@freescale.com>
Wed, 23 Oct 2013 12:20:45 +0000 (15:20 +0300)
committerYork Sun <yorksun@freescale.com>
Wed, 13 Nov 2013 20:41:28 +0000 (12:41 -0800)
commit51abee64eee0186634858d1e6f91a65969c90125
treea394f39e7a8c69e9205780850060db4f3b2661d8
parent8f9fe660fcf99af47dc0a28b80cd4e34d403f7c5
powerpc/85xx: fix broken cpu "clock-frequency" property

When indexing freqProcessor[] we use the first
value in the cpu's "reg" property, which on
new e6500 cores IDs the threads.
But freqProcessor[] should be indexed with a
core index so, when fixing "the clock-frequency"
cpu node property, access the freqProcessor[]
with the core index derived from the "reg' property.
If we don't do this, last half of the "cpu" nodes
will have broken "clock-frequency" values.

Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
Cc: York Sun <yorksun@freescale.com>
arch/powerpc/cpu/mpc85xx/fdt.c