rk3399: Reserve space for ARM Trust Firmware
authorKever Yang <kever.yang@rock-chips.com>
Mon, 25 Jul 2016 03:45:54 +0000 (11:45 +0800)
committerSimon Glass <sjg@chromium.org>
Sun, 31 Jul 2016 13:24:20 +0000 (07:24 -0600)
RK3399 needs reserve 0x200000 at the beginning of DRAM, for ATF bl31.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
board/rockchip/evb_rk3399/evb-rk3399.c

index dffacd0..cb2d97d 100644 (file)
@@ -21,6 +21,7 @@ int dram_init(void)
 
 void dram_init_banksize(void)
 {
-       gd->bd->bi_dram[0].start = 0;
+       /* Reserve 0x200000 for ATF bl31 */
+       gd->bd->bi_dram[0].start = 0x200000;
        gd->bd->bi_dram[0].size = 0x80000000;
 }