diff options
author | Peng Fan <peng.fan@nxp.com> | 2020-07-09 10:26:06 +0300 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-07-14 10:23:48 +0300 |
commit | 3c41728d80f7a6178dd4ec91c28347d9768ab200 (patch) | |
tree | e5aa2f4a4f03e0071c76d3f4b502aed467583f9c /board/freescale/imx8mn_evk | |
parent | ec04ae4217e6f68ad7ccd7740e540d79a3f4e1c1 (diff) | |
download | u-boot-3c41728d80f7a6178dd4ec91c28347d9768ab200.tar.xz |
imx8m: Refactor the OPTEE memory removal
Current codes assume the OPTEE address is at the end of first DRAM bank.
Adjust the process to allow OPTEE in the middle of first bank.
When OPTEE memory is removed from first bank, it may split the first bank
to two banks, adjust the MMU table for the split case,
Since the default CONFIG_NR_DRAM_BANKS is 4, it is enough, just enlarge
i.MX8MP evk to default to avoid issue.
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Tested-by: Silvano di Ninno <silvano.dininno@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board/freescale/imx8mn_evk')
-rw-r--r-- | board/freescale/imx8mn_evk/imx8mn_evk.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/board/freescale/imx8mn_evk/imx8mn_evk.c b/board/freescale/imx8mn_evk/imx8mn_evk.c index ea02bb75f4..e5ca54f9ae 100644 --- a/board/freescale/imx8mn_evk/imx8mn_evk.c +++ b/board/freescale/imx8mn_evk/imx8mn_evk.c @@ -9,13 +9,6 @@ DECLARE_GLOBAL_DATA_PTR; -int dram_init(void) -{ - gd->ram_size = PHYS_SDRAM_SIZE; - - return 0; -} - int board_init(void) { return 0; |