diff options
Diffstat (limited to 'board/samsung')
-rw-r--r-- | board/samsung/common/board.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c index 97950fa..2e17da8 100644 --- a/board/samsung/common/board.c +++ b/board/samsung/common/board.c @@ -82,7 +82,13 @@ int board_init(void) } boot_temp_check(); #endif +#ifdef CONFIG_TZSW_RESERVED_DRAM_SIZE + /* The last few MB of memory can be reserved for secure firmware */ + ulong size = CONFIG_TZSW_RESERVED_DRAM_SIZE; + gd->ram_size -= size; + gd->bd->bi_dram[CONFIG_NR_DRAM_BANKS - 1].size -= size; +#endif return exynos_init(); } |