diff options
author | Simon Glass <sjg@chromium.org> | 2013-04-20 08:42:41 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-05-01 11:17:21 -0400 |
commit | f828bf25fe02f0d7148a9180988ab4d5681b8195 (patch) | |
tree | 99c43aaf2246ec97b15ebb2f0603bfd7d2474d08 /include | |
parent | a733b06b69d2cb058c4363952bc0793b1f514305 (diff) | |
download | u-boot-f828bf25fe02f0d7148a9180988ab4d5681b8195.tar.gz u-boot-f828bf25fe02f0d7148a9180988ab4d5681b8195.tar.bz2 u-boot-f828bf25fe02f0d7148a9180988ab4d5681b8195.zip |
sandbox: Add CONFIG_OF_HOSTFILE to read FDT from host file
With sandbox it is tricky to add an FDT to the image at build time (or
later) since we build an ELF file, not a plain binary, and the address
space of the whole U-Boot is not accessible in the emulated memory map
of sandbox.
Sandbox can read files directly from the host, though, so add an option
to read an FDT from a host file on start-up.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/sandbox.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index da7cc9a7a7..8efadedd8d 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -26,6 +26,7 @@ #define CONFIG_SANDBOX_BITS_PER_LONG 64 #define CONFIG_OF_CONTROL +#define CONFIG_OF_HOSTFILE #define CONFIG_OF_LIBFDT #define CONFIG_LMB @@ -71,6 +72,7 @@ #define CONFIG_SYS_MEMTEST_START 0x00100000 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x1000) #define CONFIG_PHYS_64BIT +#define CONFIG_SYS_FDT_LOAD_ADDR 0x1000000 /* Size of our emulated memory */ #define CONFIG_SYS_SDRAM_BASE 0 |