diff options
author | Heinrich Schuchardt | 2020-03-14 12:13:40 +0100 |
---|---|---|
committer | Simon Glass | 2020-04-16 08:07:58 -0600 |
commit | 1c0bc80ae106a363770d38d633a40b4c3f583566 (patch) | |
tree | ce51a1151a262b17ef9751c276364f0d28b851eb /board/sandbox/sandbox.c | |
parent | 1ecea74e2e3f42185bb018fa64f70f43d2096d2f (diff) |
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>
Diffstat (limited to 'board/sandbox/sandbox.c')
-rw-r--r-- | board/sandbox/sandbox.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c index 0c3d245dff7..13720030187 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) { |