mediatek: mt8183: protect 4GB~8GB dram memory
The offset there is the virtual address space on the bus side (1-9GB for 8GB RAM),
and that emi_mpu_set_region_protection will translate to the physical memory space (0-8GB).

8GB is 33-bit (the memory bus width is 33-bit on this platform),
so 0x23FFFFFFFUL-EMI_PHY_OFFSET = 0x1_FFFF_FFFF.

Change-Id: I7be4759ed7546f7e15a5868b6f08988928c34075
Signed-off-by: Xi Chen <xixi.chen@mediatek.com>
1 parent 572fcdd commit 95d3c46a2f0db93003bebf5dc3d5568e940a773f
@Xi Chen Xi Chen authored on 13 Feb 2020
kenny liang committed on 14 Feb 2020
Showing 1 changed file
View
plat/mediatek/mt8183/drivers/emi_mpu/emi_mpu.c