]> git.sur5r.net Git - u-boot/commitdiff
armv8/mmu: Clean up TCR programming
authorThierry Reding <treding@nvidia.com>
Thu, 20 Aug 2015 09:52:13 +0000 (11:52 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 15 Oct 2015 12:41:20 +0000 (14:41 +0200)
Use the inner shareable attribute for memory, which makes more sense
considering that this code is called when caches are being enabled.

Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/include/asm/armv8/mmu.h

index 0c928d40e7ebe6e35a2a51f3745dd923fbe3e4b4..a1c3c065399b3636067f6c8e9ccb03a027e1b382 100644 (file)
 #define TCR_EL2_IPS_BITS       (3 << 16)       /* 42 bits physical address */
 #define TCR_EL3_IPS_BITS       (3 << 16)       /* 42 bits physical address */
 
-/* PTWs cacheable, inner/outer WBWA and non-shareable */
+/* PTWs cacheable, inner/outer WBWA and inner shareable */
 #define TCR_FLAGS              (TCR_TG0_64K |          \
-                               TCR_SHARED_NON |        \
+                               TCR_SHARED_INNER |      \
                                TCR_ORGN_WBWA |         \
                                TCR_IRGN_WBWA |         \
                                TCR_T0SZ(VA_BITS))