]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arc: Migrate ARC_MMU_VER to Kconfig
authorTom Rini <trini@konsulko.com>
Tue, 10 Jan 2023 16:19:29 +0000 (11:19 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 20 Jan 2023 17:27:06 +0000 (12:27 -0500)
Move this value to Kconfig.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arc/Kconfig
arch/arc/include/asm/cache.h

index 1a7c525cdb96f0ce8a501e0d5aad13c570a625bf..6ae66bb163c0b682aca6712a6a75d1e2c476ae58 100644 (file)
@@ -102,6 +102,13 @@ config ARC_MMU_V4
 
 endchoice
 
+config ARC_MMU_VER
+       int
+       default 0 if ARC_MMU_ABSENT
+       default 2 if ARC_MMU_V2
+       default 3 if ARC_MMU_V3
+       default 4 if ARC_MMU_V4
+
 config CPU_BIG_ENDIAN
        bool "Enable Big Endian Mode"
        help
index a48e1aec6889e0d2578085a67c295aca5ac06054..74cff716ef60aa6ce06e1179383dd9f95a6a1f56 100644 (file)
  */
 #define ARCH_DMA_MINALIGN      128
 
-#if defined(ARC_MMU_ABSENT)
-#define CONFIG_ARC_MMU_VER 0
-#elif defined(CONFIG_ARC_MMU_V2)
-#define CONFIG_ARC_MMU_VER 2
-#elif defined(CONFIG_ARC_MMU_V3)
-#define CONFIG_ARC_MMU_VER 3
-#elif defined(CONFIG_ARC_MMU_V4)
-#define CONFIG_ARC_MMU_VER 4
-#endif
-
 #ifndef __ASSEMBLY__
 
 void cache_init(void);