imx8m: Refactor the OPTEE memory removal
authorPeng Fan <peng.fan@nxp.com>
Thu, 9 Jul 2020 07:26:06 +0000 (15:26 +0800)
committerPeng Fan <peng.fan@nxp.com>
Tue, 14 Jul 2020 07:23:48 +0000 (15:23 +0800)
commit3c41728d80f7a6178dd4ec91c28347d9768ab200
treee5aa2f4a4f03e0071c76d3f4b502aed467583f9c
parentec04ae4217e6f68ad7ccd7740e540d79a3f4e1c1
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>
arch/arm/mach-imx/imx8m/soc.c
board/beacon/imx8mm/imx8mm_beacon.c
board/freescale/imx8mm_evk/imx8mm_evk.c
board/freescale/imx8mn_evk/imx8mn_evk.c
board/freescale/imx8mp_evk/imx8mp_evk.c
board/freescale/imx8mq_evk/imx8mq_evk.c
board/google/imx8mq_phanbell/imx8mq_phanbell.c
board/technexion/pico-imx8mq/pico-imx8mq.c
board/toradex/verdin-imx8mm/verdin-imx8mm.c
configs/imx8mp_evk_defconfig