diff options
author | Becky Bruce <becky.bruce@freescale.com> | 2008-11-10 19:45:35 -0600 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2008-11-11 09:44:10 -0600 |
commit | 3f510db522d160179dff3ddcce9b18f6241c2c24 (patch) | |
tree | a01db969f492193830a067877c0d21a5a0edf673 | |
parent | d025aa4b20a0618a2bada0132a9a0a4afb717f1a (diff) | |
download | bootable_bootloader_goldelico_gta04-3f510db522d160179dff3ddcce9b18f6241c2c24.zip bootable_bootloader_goldelico_gta04-3f510db522d160179dff3ddcce9b18f6241c2c24.tar.gz bootable_bootloader_goldelico_gta04-3f510db522d160179dff3ddcce9b18f6241c2c24.tar.bz2 |
mpc8641: fix address-cells default in old .dts detection
address-cells defaults to 2, not 1; so in the unlikely
event that it isn't specified, this patch is required
for correct operation.
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
-rw-r--r-- | board/freescale/mpc8641hpcn/mpc8641hpcn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/freescale/mpc8641hpcn/mpc8641hpcn.c b/board/freescale/mpc8641hpcn/mpc8641hpcn.c index 285d051..b83ed6c 100644 --- a/board/freescale/mpc8641hpcn/mpc8641hpcn.c +++ b/board/freescale/mpc8641hpcn/mpc8641hpcn.c @@ -278,10 +278,10 @@ ft_board_setup(void *blob, bd_t *bd) if (tmp) { u64 addr; - if (addrcells && (*addrcells == 2)) - addr = *tmp; - else + if (addrcells && (*addrcells == 1)) addr = *(u32 *)tmp; + else + addr = *tmp; if (addr != CONFIG_SYS_CCSRBAR_PHYS) printf("WARNING: The CCSRBAR address in your .dts " |