projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d025aa4
)
mpc8641: fix address-cells default in old .dts detection
author
Becky Bruce
<becky.bruce@freescale.com>
Tue, 11 Nov 2008 01:45:35 +0000
(19:45 -0600)
committer
Jon Loeliger
<jdl@freescale.com>
Tue, 11 Nov 2008 15:44:10 +0000
(09:44 -0600)
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>
board/freescale/mpc8641hpcn/mpc8641hpcn.c
patch
|
blob
|
history
diff --git
a/board/freescale/mpc8641hpcn/mpc8641hpcn.c
b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
index
285d051
..
b83ed6c
100644
(file)
--- 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 "