summaryrefslogtreecommitdiff
path: root/common/board_f.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-03-28 16:27:16 (GMT)
committerTom Rini <trini@konsulko.com>2017-04-05 17:52:35 (GMT)
commitbb967240bbd0b8c1816710803bca3c976d071d12 (patch)
tree4c48a88816fb95a3ece89f3966cdd79a18a75431 /common/board_f.c
parent70cc0c34b638fbf99f0984dc53312cd8479c99a7 (diff)
downloadu-boot-bb967240bbd0b8c1816710803bca3c976d071d12.tar.xz
board_f: sandbox: Move setup_ram_buf() to private code
There is no need to have this call in the generic init sequence and no other architecture has needed it in the time it has been there. Move it into sandbox's private code. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common/board_f.c')
-rw-r--r--common/board_f.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/common/board_f.c b/common/board_f.c
index c4eb3ae..0b2a325 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -58,9 +58,6 @@
#if defined(CONFIG_X86) || defined(CONFIG_ARC) || defined(CONFIG_XTENSA)
#include <asm/relocate.h>
#endif
-#ifdef CONFIG_SANDBOX
-#include <asm/state.h>
-#endif
#include <dm/root.h>
#include <linux/compiler.h>
@@ -294,18 +291,6 @@ __weak int mach_cpu_init(void)
return 0;
}
-#ifdef CONFIG_SANDBOX
-static int setup_ram_buf(void)
-{
- struct sandbox_state *state = state_get_current();
-
- gd->arch.ram_buf = state->ram_buf;
- gd->ram_size = state->ram_size;
-
- return 0;
-}
-#endif
-
/* Get the top of usable RAM */
__weak ulong board_get_usable_ram_top(ulong total_size)
{
@@ -823,9 +808,6 @@ __weak int arch_cpu_init_dm(void)
}
static const init_fnc_t init_sequence_f[] = {
-#ifdef CONFIG_SANDBOX
- setup_ram_buf,
-#endif
setup_mon_len,
#ifdef CONFIG_OF_CONTROL
fdtdec_setup,