projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd51b0e
)
Socrates: Added FPGA base address update in FDT.
author
Sergei Poselenov
<sposelenov@emcraft.com>
Fri, 6 Jun 2008 13:42:45 +0000
(15:42 +0200)
committer
Andrew Fleming-AFLEMING
<afleming@freescale.com>
Wed, 11 Jun 2008 05:30:34 +0000
(
00:30
-0500)
Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
board/socrates/socrates.c
patch
|
blob
|
history
diff --git
a/board/socrates/socrates.c
b/board/socrates/socrates.c
index a75e0c32717da3548ec4b32a1e47bb040838657c..d791f1135f1036614a264c03af3dcad39b3f1243 100644
(file)
--- a/
board/socrates/socrates.c
+++ b/
board/socrates/socrates.c
@@
-224,5
+224,15
@@
ft_board_setup(void *blob, bd_t *bd)
if (rc)
printf("Unable to update property NOR mapping, err=%s\n",
fdt_strerror(rc));
+
+#if defined (CFG_FPGA_BASE)
+ memset(val, 0, sizeof(val));
+ val[0] = CFG_FPGA_BASE;
+ rc = fdt_find_and_setprop(blob, "/localbus/fpga", "virtual-reg",
+ val, sizeof(val), 1);
+ if (rc)
+ printf("Unable to update property \"fpga\", err=%s\n",
+ fdt_strerror(rc));
+#endif
}
#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */