diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-03-14 12:13:40 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-10 13:11:09 -0600 |
commit | 49e51493f5166dd4077f76b2a3d5a5a730465921 (patch) | |
tree | 1cd96e50c11ce7feaf92560d6061e5edf6b167b3 | |
parent | 6015cc35ec0197224fab2612ed0f38d086c5ca2f (diff) | |
download | u-boot-49e51493f5166dd4077f76b2a3d5a5a730465921.tar.gz |
sandbox: implement ft_board_setup()
Currently we are not able to test reservations created by ft_board_setup().
Implement ft_board_setup() to create an arbitrary reservation and enable
OF_BOARD_SETUP.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromum.org>
-rw-r--r-- | arch/Kconfig | 1 | ||||
-rw-r--r-- | board/sandbox/sandbox.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/Kconfig b/arch/Kconfig index ae9c93ed7b..91e049b322 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -96,6 +96,7 @@ config SANDBOX select DM_SPI_FLASH select HAVE_BLOCK_DEVICE select LZO + select OF_BOARD_SETUP select PCI_ENDPOINT select SPI select SUPPORT_OF_CONTROL diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c index 0c3d245dff..1372003018 100644 --- a/board/sandbox/sandbox.c +++ b/board/sandbox/sandbox.c @@ -58,6 +58,12 @@ int board_init(void) return 0; } +int ft_board_setup(void *fdt, bd_t *bd) +{ + /* Create an arbitrary reservation to allow testing OF_BOARD_SETUP.*/ + return fdt_add_mem_rsv(fdt, 0x00d02000, 0x4000); +} + #ifdef CONFIG_BOARD_LATE_INIT int board_late_init(void) { |