summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/armv8/mmu.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-03-16 16:43:32 -0400
committerTom Rini <trini@konsulko.com>2017-03-16 16:43:32 -0400
commitce38ebb6f7f0e2111b7d457651ae0a76bc5a2636 (patch)
treec2c424ead06d5f265d6e4c954550454b9cf8c650 /arch/arm/include/asm/armv8/mmu.h
parent2808576491ae36b6ea96743005058f370d936beb (diff)
parent9b6639fa85bddd90df4c371f25a89c791a6ee6ef (diff)
Merge git://git.denx.de/u-boot-fsl-qoriq
Diffstat (limited to 'arch/arm/include/asm/armv8/mmu.h')
-rw-r--r--arch/arm/include/asm/armv8/mmu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/armv8/mmu.h b/arch/arm/include/asm/armv8/mmu.h
index e9b4cdbbcd..a34990368e 100644
--- a/arch/arm/include/asm/armv8/mmu.h
+++ b/arch/arm/include/asm/armv8/mmu.h
@@ -53,6 +53,7 @@
#define PTE_TYPE_FAULT (0 << 0)
#define PTE_TYPE_TABLE (3 << 0)
#define PTE_TYPE_BLOCK (1 << 0)
+#define PTE_TYPE_VALID (1 << 0)
#define PTE_TABLE_PXN (1UL << 59)
#define PTE_TABLE_XN (1UL << 60)
@@ -77,6 +78,10 @@
*/
#define PMD_ATTRINDX(t) ((t) << 2)
#define PMD_ATTRINDX_MASK (7 << 2)
+#define PMD_ATTRMASK (PTE_BLOCK_PXN | \
+ PTE_BLOCK_UXN | \
+ PMD_ATTRINDX_MASK | \
+ PTE_TYPE_VALID)
/*
* TCR flags.