Skip to contentSkip to conversation

arm: kconfig: push down CACHE_L2X0

RFC PATCH New Daniel Walker 2 participants 2 messages Apr 2, 2010 – Apr 12, 2010

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 arm: kconfig: push down CACHE_L2X0

Does it make sense to push down this value? It looks like it's just adding more and more sub-architectures .. Is the method below acceptable?

arch/arm/mach-mx3/Kconfig +2 -0
index 3872af1..565d176 100644
@@ -3,12 +3,14 @@ if ARCH_MX3
 config ARCH_MX31
 	select ARCH_HAS_RNGA
 	select ARCH_MXC_AUDMUX_V2
+	select HAS_CACHE_L2X0
 	bool
 
 config ARCH_MX35
 	bool
 	select ARCH_MXC_IOMUX_V3
 	select ARCH_MXC_AUDMUX_V2
+	select HAS_CACHE_L2X0
 
 comment "MX3 platforms:"
 
arch/arm/mach-nomadik/Kconfig +1 -1
index 3c5e0f5..2445be4 100644
@@ -6,7 +6,7 @@ config MACH_NOMADIK_8815NHK
 	bool "ST 8815 Nomadik Hardware Kit (evaluation board)"
 	select NOMADIK_8815
 	select HAS_MTU
-
+	select HAS_CACHE_L2X0
 endmenu
 
 config NOMADIK_8815
arch/arm/mach-realview/Kconfig +5 -0
index ee5e392..8557db7 100644
@@ -11,6 +11,7 @@ config REALVIEW_EB_A9MP
 	bool "Support Multicore Cortex-A9"
 	depends on MACH_REALVIEW_EB
 	select CPU_V7
+	select HAS_CACHE_L2X0
 	help
 	  Enable support for the Cortex-A9MPCore tile on the Realview platform.
 
@@ -18,6 +19,7 @@ config REALVIEW_EB_ARM11MP
 	bool "Support ARM11MPCore tile"
 	depends on MACH_REALVIEW_EB
 	select CPU_V6
+	select HAS_CACHE_L2X0
 	help
 	  Enable support for the ARM11MPCore tile on the Realview platform.
 
@@ -35,6 +37,7 @@ config MACH_REALVIEW_PB11MP
 	select CPU_V6
 	select ARM_GIC
 	select HAVE_PATA_PLATFORM
+	select HAS_CACHE_L2X0
 	help
 	  Include support for the ARM(R) RealView MPCore Platform Baseboard.
 	  PB11MPCore is a platform with an on-board ARM11MPCore and has
@@ -44,6 +47,7 @@ config MACH_REALVIEW_PB1176
 	bool "Support RealView/PB1176 platform"
 	select CPU_V6
 	select ARM_GIC
+	select HAS_CACHE_L2X0
 	help
 	  Include support for the ARM(R) RealView ARM1176 Platform Baseboard.
 
@@ -70,6 +74,7 @@ config MACH_REALVIEW_PBX
 	bool "Support RealView/PBX platform"
 	select ARM_GIC
 	select HAVE_PATA_PLATFORM
+	select HAS_CACHE_L2X0
 	select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !REALVIEW_HIGH_PHYS_OFFSET
 	select ZONE_DMA if SPARSEMEM
 	help
arch/arm/mm/Kconfig +4 -2
index c4ed9f9..cf96f7f 100644
@@ -751,10 +751,12 @@ config CACHE_FEROCEON_L2_WRITETHROUGH
 	  Say Y here to use the Feroceon L2 cache in writethrough mode.
 	  Unless you specifically require this, say N for writeback mode.
 
+config HAS_CACHE_L2X0
+	bool
+
 config CACHE_L2X0
 	bool "Enable the L2x0 outer cache controller"
-	depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \
-		   REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31 || MACH_REALVIEW_PBX || ARCH_NOMADIK || ARCH_OMAP4
+	depends on HAS_CACHE_L2X0
 	default y
 	select OUTER_CACHE
 	help
arch/arm/plat-omap/Kconfig +1 -0
index 6da796e..cd19856 100644
@@ -38,6 +38,7 @@ config ARCH_OMAP4
 	depends on ARCH_OMAP2PLUS
 	select CPU_V7
 	select ARM_GIC
+	select HAS_CACHE_L2X0
 
 endchoice
 
#1 lore raw

RFC PATCH 1/1 arm: kconfig: push down CACHE_L2X0

Quoted 3 lines · Daniel Walker

Does it make sense to push down this value? It looks like it's just adding more and more sub-architectures .. Is the method below acceptable?

Yes, but please name it HAVE_CACHE_L2X0.