]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
microblaze: Migrate DCACHE/ICACHE to Kconfig
authorTom Rini <trini@konsulko.com>
Wed, 30 Mar 2022 22:07:26 +0000 (18:07 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 8 Apr 2022 14:46:22 +0000 (10:46 -0400)
Move these two options to the arch Kconfig file.

Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/Kconfig
include/configs/microblaze-generic.h

index a25a95a0131cbe8a674e3637497ceced68e328a8..d7d1b219704e0d971d68aec649b13cee0c5c4636 100644 (file)
@@ -25,6 +25,14 @@ config TARGET_MICROBLAZE_GENERIC
 
 endchoice
 
+config DCACHE
+       bool "Enable dcache support"
+       default y
+
+config ICACHE
+       bool "Enable icache support"
+       default y
+
 source "board/xilinx/Kconfig"
 source "board/xilinx/microblaze-generic/Kconfig"
 
index 744e20e58e71fb180402aae1aa30fbc210ef23b3..663837f33dc4fb58eeb11e8f3cb3fe00227cda2f 100644 (file)
@@ -30,9 +30,6 @@
 # define CONFIG_SYS_MAX_FLASH_SECT     2048
 #endif
 
-#define CONFIG_ICACHE
-#define CONFIG_DCACHE
-
 #ifndef XILINX_DCACHE_BYTE_SIZE
 #define XILINX_DCACHE_BYTE_SIZE        32768
 #endif