From: Sergei Poselenov Date: Fri, 6 Jun 2008 13:42:45 +0000 (+0200) Subject: Socrates: Added FPGA base address update in FDT. X-Git-Tag: v1.3.4-rc1~110^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a23cddde1a95f987e3fe2a720a7ec9375b7264d7;p=oweals%2Fu-boot.git Socrates: Added FPGA base address update in FDT. Signed-off-by: Sergei Poselenov --- diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c index a75e0c3271..d791f1135f 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) */