diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-19 22:16:12 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-24 06:13:45 -0700 |
commit | 146251f87eaebbd77ca9596391890b44cbda47fb (patch) | |
tree | d5f29a5645bc76dca16f3f30f4a8e40195e416bc /common/board_f.c | |
parent | 8e899af0597a43d70752654b227f308dd0d0039c (diff) | |
download | u-boot-imx-146251f87eaebbd77ca9596391890b44cbda47fb.zip u-boot-imx-146251f87eaebbd77ca9596391890b44cbda47fb.tar.gz u-boot-imx-146251f87eaebbd77ca9596391890b44cbda47fb.tar.bz2 |
Allow architecture-specific memory reservation
All memory to be reserved for use after relocation by adding a new call
to perform this reservation.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/board_f.c')
-rw-r--r-- | common/board_f.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/board_f.c b/common/board_f.c index 3a4b32c..215108b 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -807,6 +807,12 @@ static int initf_dm(void) return 0; } +/* Architecture-specific memory reservation */ +__weak int reserve_arch(void) +{ + return 0; +} + static init_fnc_t init_sequence_f[] = { #ifdef CONFIG_SANDBOX setup_ram_buf, @@ -970,6 +976,7 @@ static init_fnc_t init_sequence_f[] = { setup_machine, reserve_global_data, reserve_fdt, + reserve_arch, reserve_stacks, setup_dram_config, show_dram_config, |