]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
Allow architecture-specific memory reservation
authorSimon Glass <sjg@chromium.org>
Tue, 20 Jan 2015 05:16:12 +0000 (22:16 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 24 Jan 2015 13:13:45 +0000 (06:13 -0700)
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>
common/board_f.c

index 3a4b32c29dc1dbccb6f181297ce0686b4dcf990b..215108ba06e07d5b907fac5def2887e1249d01ca 100644 (file)
@@ -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,