diff options
author | Tom Rini <trini@konsulko.com> | 2023-01-10 19:19:29 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-20 20:27:06 +0300 |
commit | 409163a46e161e906fcc2c3963dec45166a81460 (patch) | |
tree | 938c79012d91c4086213bc6a9f0627ce6eed42b1 /arch | |
parent | a3fda0d30afa5e931520006351752cfb9c0103dd (diff) | |
download | u-boot-409163a46e161e906fcc2c3963dec45166a81460.tar.xz |
arc: Migrate ARC_MMU_VER to Kconfig
Move this value to Kconfig.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arc/Kconfig | 7 | ||||
-rw-r--r-- | arch/arc/include/asm/cache.h | 10 |
2 files changed, 7 insertions, 10 deletions
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 1a7c525cdb..6ae66bb163 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -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 diff --git a/arch/arc/include/asm/cache.h b/arch/arc/include/asm/cache.h index a48e1aec68..74cff716ef 100644 --- a/arch/arc/include/asm/cache.h +++ b/arch/arc/include/asm/cache.h @@ -16,16 +16,6 @@ */ #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); |