Skip to contentSkip to conversation

arm: Add SYS_L2CACHE_OFF Kconfig entry

PATCH New Peng Fan 1 participant 3 messages Aug 19, 2015 Arm (32-bit)

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/3 arm: Add SYS_L2CACHE_OFF Kconfig entry

To i.MX6UL, SYS_L2CACHE_OFF is selected, but there is no Kconfig entry for SYS_L2CACHE_OFF. Then "select SYS_L2CACHE_OFF" does not effect for i.MX6UL, which is not expected.

Since SYS_L2CACHE_OFF is mainly used by ARM architecture, add it to arch/arm/Kconfig.

Cc Albert Aribaud <[email protected]>
Cc Tom Rini <[email protected]>
Cc Stefano Babic <[email protected]>

---

Hi,

I worked this patch based on imx tree, since mainly for i.MX6UL. Then can this patch go through imx tree to avoid break i.MX6UL? This option does not impact others which defined CONFIG_SYS_L2CACHE_OFF in board header file.

 arch/arm/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/Kconfig +6 -0
index 9a01c5c..ad8f796 100644
@@ -62,6 +62,12 @@ config SEMIHOSTING
 	  the hosted environment to call out to the emulator to
 	  retrieve files from the host machine.
 
+config SYS_L2CACHE_OFF
+	bool "L2cache off"
+	help
+	  If SoC does not support L2CACHE or one do not want to enable
+	  L2CACHE, choose this option.
+
 choice
 	prompt "Target select"
 	optional
Signature · 1 line
1.8.4
author
#1 lore raw

PATCH 2/3 imx: mx6ul_14x14_evk select MX6UL

There is no need to expose SoC choice to user, we already got the SoC according to the build target. So default "select MX6UL" for MX6UL_14x14_EVK target.

Cc Stefano Babic <[email protected]>
Cc Fabio Estevam <[email protected]>

---

Hi Stefano,

From my side, I think we need to select MX6x for other TARGET_xx based on MX6x. Later I'll do that work if you agree with my point. From the long run, we can discard the MX6x, if we finally reach the goal to support runtime check, but work to be done step by step:)

 arch/arm/cpu/armv7/mx6/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/cpu/armv7/mx6/Kconfig +1 -0
index 6c63277..3987eef 100644
@@ -102,6 +102,7 @@ config TARGET_MX6SXSABRESD
 
 config TARGET_MX6UL_14X14_EVK
 	bool "mx6ul_14x14_evk"
+	select MX6UL
 	select CPU_V7
 	select DM
 	select DM_THERMAL
Signature · 1 line
1.8.4
author
#2 lore raw

PATCH 3/3 imx: mx6ul_14x14_evk discard MX6UL from CONFIG_SYS_EXTRA_OPTIONS

In reply to Peng Fan

Discard MX6UL from CONFIG_SYS_EXTRA_OPTIONS, since we default select MX6UL for mx6ul_14x14_evk board.

Cc Stefano Babic <[email protected]>
Cc Fabio Estevam <[email protected]>
---
 configs/mx6ul_14x14_evk_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/mx6ul_14x14_evk_defconfig +1 -1
index c3a6d98..64ee810 100644
@@ -1,4 +1,4 @@
-CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6UL"
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg"
 CONFIG_ARM=y
 CONFIG_ARCH_MX6=y
 CONFIG_TARGET_MX6UL_14X14_EVK=y
Signature · 1 line
1.8.4