mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
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>
This commit is contained in:
parent
d025aa4b20
commit
3f510db522
1 changed files with 3 additions and 3 deletions
|
@ -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 "
|
||||
|
|
Loading…
Reference in a new issue