]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Odroid U3: use common code for dram reservation
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Tue, 17 Feb 2015 13:50:27 +0000 (14:50 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 4 Mar 2015 12:25:35 +0000 (21:25 +0900)
This commit removes the dram reservation from board file,
because it is done in a common code.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/odroid/odroid.c
include/configs/odroid.h

index 6f4b8caea545149505ace8d7da6fd22a3f335732..ae41c29d9254d162a8ba702c0d4e968eb673a7ec 100644 (file)
@@ -427,10 +427,6 @@ int exynos_early_init_f(void)
 
 int exynos_init(void)
 {
-       /* The last MB of memory is reserved for secure firmware */
-       gd->ram_size -= SZ_1M;
-       gd->bd->bi_dram[CONFIG_NR_DRAM_BANKS - 1].size -= SZ_1M;
-
        board_gpio_init();
 
        return 0;
index 8b47537614ecf7fd150fb0bd10fcb179d0eb4dee..5ee0abe02a89931bb6b126988df6113068e7b7fd 100644 (file)
@@ -29,6 +29,9 @@
 #define CONFIG_SYS_SDRAM_BASE  0x40000000
 #define SDRAM_BANK_SIZE                (256 << 20)     /* 256 MB */
 #define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE
+/* Reserve the last 1 MiB for the secure firmware */
+#define CONFIG_SYS_MEM_TOP_HIDE                (1UL << 20UL)
+#define CONFIG_TZSW_RESERVED_DRAM_SIZE CONFIG_SYS_MEM_TOP_HIDE
 
 /* memtest works on */
 #define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE
@@ -56,8 +59,6 @@
 #define CONFIG_SYS_INIT_SP_ADDR        (CONFIG_SYS_LOAD_ADDR \
                                        - GENERATED_GBL_DATA_SIZE)
 
-#define CONFIG_SYS_MEM_TOP_HIDE        (SZ_1M) /* ram console */
-
 #define CONFIG_SYS_MONITOR_BASE        0x00000000
 
 #define CONFIG_ENV_IS_IN_MMC