diff options
author | Silvano di Ninno <silvano.dininno@nxp.com> | 2018-05-17 17:05:19 +0200 |
---|---|---|
committer | Silvano di Ninno <silvano.dininno@nxp.com> | 2018-05-18 12:52:12 +0200 |
commit | e9ec5ea8dbe3d12b40ba22fe36400cfe98e1bd44 (patch) | |
tree | acb05275199895fed2a2ec33767923e101b1fecd /board | |
parent | d5c9774e68f37e3a6a29088d33ae289aea8536b9 (diff) |
MLK-18344: add OP-TEE support for i.Mx 8MM
like for i.MX 8mq ATF passes as argument to u-boot
the start and the length of the BL32 firmware.
u-boot uses this information to adjust the size of the DDR for linux.
Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/imx8mm_evk/imx8mm_evk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/freescale/imx8mm_evk/imx8mm_evk.c b/board/freescale/imx8mm_evk/imx8mm_evk.c index 03149a6eb8..a39fb69205 100644 --- a/board/freescale/imx8mm_evk/imx8mm_evk.c +++ b/board/freescale/imx8mm_evk/imx8mm_evk.c @@ -135,7 +135,11 @@ int board_postclk_init(void) int dram_init(void) { - gd->ram_size = PHYS_SDRAM_SIZE; + /* rom_pointer[1] contains the size of TEE occupies */ + if (rom_pointer[1]) + gd->ram_size = PHYS_SDRAM_SIZE - rom_pointer[1]; + else + gd->ram_size = PHYS_SDRAM_SIZE; return 0; } |