[PATCH v2 1/7] arm64: Update the values to binary from hex

Aneesh Kumar K.V (Arm)
2025-01-10T11:00:39Z

This matches the ARM ARM representation. No functional change in this
patch.

Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
---
arch/arm64/include/asm/memory.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h
index 8b9f33cf561b..cb244668954c 100644
--- a/arch/arm64/include/asm/memory.h
+++ b/arch/arm64/include/asm/memory.h
@@ -178,17 +178,17 @@
/*
* Memory types for Stage-2 translation
*/
-#define MT_S2_NORMAL 0xf
-#define MT_S2_NORMAL_NC 0x5
-#define MT_S2_DEVICE_nGnRE 0x1
+#define MT_S2_NORMAL 0b1111
+#define MT_S2_NORMAL_NC 0b0101
+#define MT_S2_DEVICE_nGnRE 0b0001

/*
* Memory types for Stage-2 translation when ID_AA64MMFR2_EL1.FWB is 0001
* Stage-2 enforces Normal-WB and Device-nGnRE
*/
-#define MT_S2_FWB_NORMAL 6
-#define MT_S2_FWB_NORMAL_NC 5
-#define MT_S2_FWB_DEVICE_nGnRE 1
+#define MT_S2_FWB_NORMAL 0b0110
+#define MT_S2_FWB_NORMAL_NC 0b0101
+#define MT_S2_FWB_DEVICE_nGnRE 0b0001

#ifdef CONFIG_ARM64_4K_PAGES
#define IOREMAP_MAX_ORDER (PUD_SHIFT)
--
2.43.0