[PATCH 38/78] ARM: aarch64: qemu board: remove unnecessary mapping

Sascha Hauer s.hauer at pengutronix.de
Fri Mar 16 05:53:14 PDT 2018


Now that we do the initial flat mapping as device memory all addresses
that are not SDRAM are already mapped as device memory, so we can drop
the mapping from the board file.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/boards/qemu-virt64/init.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/arm/boards/qemu-virt64/init.c b/arch/arm/boards/qemu-virt64/init.c
index 18831755df..686231696e 100644
--- a/arch/arm/boards/qemu-virt64/init.c
+++ b/arch/arm/boards/qemu-virt64/init.c
@@ -66,11 +66,6 @@ postcore_initcall(virt_core_init);
 #ifdef CONFIG_MMU
 static int virt_mmu_enable(void)
 {
-	/* Mapping all periph and flash range */
-	arch_remap_range((void *)0x00000000, 0x40000000,
-			 PMD_ATTRINDX(MT_DEVICE_nGnRnE) | PMD_SECT_AF |
-			 PMD_TYPE_SECT);
-
 	mmu_enable();
 
 	return 0;
-- 
2.16.1




More information about the barebox mailing list