Skip to contentSkip to conversation

ARM: rmobile: Mark 4-64GiB as DRAM on Gen3

PATCH New Marek Vasut 1 participant 1 message Oct 2, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: rmobile: Mark 4-64GiB as DRAM on Gen3

Mark area 0x1_0000_0000 - 0x10_0000_0000 as DRAM on Gen3 as the chip is capable of addressing that and U-Boot can make use of it. This patch prevents exception when accessing those areas.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 arch/arm/mach-rmobile/memmap-gen3.c | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/mach-rmobile/memmap-gen3.c +6 -0
index 57a2f88fc4..92c8f2e80d 100644
@@ -29,6 +29,12 @@ static struct mm_region gen3_mem_map[] = {
 		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
 			 PTE_BLOCK_NON_SHARE |
 			 PTE_BLOCK_PXN | PTE_BLOCK_UXN
+	}, {
+		.virt = 0x100000000UL,
+		.phys = 0x100000000UL,
+		.size = 0xf00000000UL,
+		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+			 PTE_BLOCK_INNER_SHARE
 	}, {
 		/* List terminator */
 		0,
Signature · 1 line
2.18.0