summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-03-08 11:00:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-21 12:22:59 +0100
commite909c802d4d6050ea5e3c881230dd4398ec14e71 (patch)
tree6d572ac5a888d6c6a82342b34875016eb62f4db9 /arch/arm/include
parenta43e2bbc468a71fb8825e8acafb7fac7ad7c6dad (diff)
downloadbarebox-e909c802d4d6050ea5e3c881230dd4398ec14e71.tar.gz
barebox-e909c802d4d6050ea5e3c881230dd4398ec14e71.tar.xz
ARM: mmu: include pgtable header from where it's needed
Instead of #ifdefing the correct pgtable header file to include, include it where it's needed. Also, move the memory type attributes into there consumers, namely the mmu.c files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/mmu.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/arm/include/asm/mmu.h b/arch/arm/include/asm/mmu.h
index f68ab37143..2a1daeafe3 100644
--- a/arch/arm/include/asm/mmu.h
+++ b/arch/arm/include/asm/mmu.h
@@ -6,21 +6,6 @@
#include <malloc.h>
#include <xfuncs.h>
-#ifdef CONFIG_CPU_64v8
-#include <asm/pgtable64.h>
-
-#define DEV_MEM (PMD_ATTRINDX(MT_DEVICE_nGnRnE) | PMD_SECT_AF | PMD_TYPE_SECT)
-#define CACHED_MEM (PMD_ATTRINDX(MT_NORMAL) | PMD_SECT_S | PMD_SECT_AF | PMD_TYPE_SECT)
-#define UNCACHED_MEM (PMD_ATTRINDX(MT_NORMAL_NC) | PMD_SECT_S | PMD_SECT_AF | PMD_TYPE_SECT)
-#else
-#include <asm/pgtable.h>
-
-#define PMD_SECT_DEF_UNCACHED (PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | PMD_TYPE_SECT)
-#define PMD_SECT_DEF_CACHED (PMD_SECT_WB | PMD_SECT_DEF_UNCACHED)
-#endif
-
-
-
struct arm_memory;
void mmu_enable(void);