]> git.ipfire.org Git - people/ms/u-boot.git/commit
powerpc/85xx: verify the localbus device tree address before booting the OS
authorTimur Tabi <timur@freescale.com>
Wed, 16 Nov 2011 19:28:34 +0000 (13:28 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 29 Nov 2011 14:48:06 +0000 (08:48 -0600)
commitcc15df57b1ce2fb7b9aac7567b25e7b3bef28458
treeaacaba89fac7d1edd0747605cf79b810acf99e4c
parent2f3a71f235f442beb9419cee94ef6888b24f8259
powerpc/85xx: verify the localbus device tree address before booting the OS

The localbus controller node in the device tree is typically a root node,
even though the controller is part of CCSR.  If we were to put the lbc
node under the SOC node, then the 'ranges' property in the lbc node would
translate through the 'ranges' property of the parent SOC node, and we
don't want that.

Since the lbc is a separate node, it's possible for the 'reg' property to
be wrong.  This happened with the original version of p1022ds.dts, which
used a 32-bit value in the 'reg' address, instead of a 36-bit address.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/fdt.c