summaryrefslogtreecommitdiff
path: root/board/socrates
diff options
context:
space:
mode:
authorSergei Poselenov <sposelenov@emcraft.com>2008-06-06 15:42:45 +0200
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-06-11 00:30:34 -0500
commita23cddde1a95f987e3fe2a720a7ec9375b7264d7 (patch)
treefb9fecb2cd7a5f57683abab1d7a15fd8fb61641c /board/socrates
parentfd51b0e0e620b8bc9fd4f6daa3a4fa6f5e1316f4 (diff)
downloadu-boot-imx-a23cddde1a95f987e3fe2a720a7ec9375b7264d7.zip
u-boot-imx-a23cddde1a95f987e3fe2a720a7ec9375b7264d7.tar.gz
u-boot-imx-a23cddde1a95f987e3fe2a720a7ec9375b7264d7.tar.bz2
Socrates: Added FPGA base address update in FDT.
Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
Diffstat (limited to 'board/socrates')
-rw-r--r--board/socrates/socrates.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c
index a75e0c3..d791f11 100644
--- 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) */