]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/hwspinlock.git/blobdiff - arch/arm/include/asm/pgtable-3level.h
HACK: arm: keystone: add outer shareable attribute for pages/sections
[rpmsg/hwspinlock.git] / arch / arm / include / asm / pgtable-3level.h
index 6d50a11d779345349cd2155fa433e3b9d6a75d08..a7bcc7757e0faad7e64e6cc7c99d65a9074b1fe5 100644 (file)
 #define L_PTE_VALID            (_AT(pteval_t, 1) << 0)         /* Valid */
 #define L_PTE_PRESENT          (_AT(pteval_t, 3) << 0)         /* Present */
 #define L_PTE_USER             (_AT(pteval_t, 1) << 6)         /* AP[1] */
+#ifdef CONFIG_KEYSTONE2_DMA_COHERENT
+/* SH[1:0], outer shareable */
+#define L_PTE_SHARED           (_AT(pteval_t, 2) << 8)
+#else
 #define L_PTE_SHARED           (_AT(pteval_t, 3) << 8)         /* SH[1:0], inner shareable */
+#endif
 #define L_PTE_YOUNG            (_AT(pteval_t, 1) << 10)        /* AF */
 #define L_PTE_XN               (_AT(pteval_t, 1) << 54)        /* XN */
 #define L_PTE_DIRTY            (_AT(pteval_t, 1) << 55)