imx8: add mmu and dram related functions
authorPeng Fan <peng.fan@nxp.com>
Thu, 18 Oct 2018 12:28:21 +0000 (14:28 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 22 Oct 2018 10:59:01 +0000 (12:59 +0200)
commit930b59529176bb05ea61ef9a40bf6384227f991e
treef7f325cf692e2cf15b4b8e9704352a60ca0d04a7
parentc1aae21d89108adcfc4316a5a073e3ff1f972a2c
imx8: add mmu and dram related functions

Add mmu memmap, some memory regions are reserved by M4, Arm Trusted
Firmware, so need to get memreg using SCFW API and setup the memmap.

Add dram_init, dram_init_banksize, get_effective_memsize functions,
according to the memreg.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/imx8/cpu.c