Skip to contentSkip to conversation

ARM: S5PV210: Update Kconfig and Makefiles

PATCH Superseded Kukjin Kim 3 participants 3 messages Jan 27, 2010

Subsystems (2)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Kukjin Kim

author
#0 lore raw

PATCH v4 4/8 ARM: S5PV210: Update Kconfig and Makefiles

Updates arch/arm Kconfig and Makefile for building the S5PV210 support. Also modifies the plat-s5p Kconfig file to include the support for plat-s5p for S5PV210.

---
 arch/arm/Kconfig          |   12 +++++++++++-
 arch/arm/Makefile         |    1 +
 arch/arm/mm/Kconfig       |    2 +-
 arch/arm/plat-s5p/Kconfig |    2 +-
 4 files changed, 14 insertions(+), 3 deletions(-)
arch/arm/Kconfig +11 -1
index 3bc5169..a5602ec 100644
@@ -649,6 +649,14 @@ config ARCH_S5PC1XX
 	help
 	  Samsung S5PC1XX series based systems
 
+config ARCH_S5PV210
+	bool "Samsung S5PV210/S5PC110"
+	select CPU_V7
+	select GENERIC_GPIO
+	select HAVE_CLK
+	help
+	  Samsung S5PV210/S5PC110 series based systems
+
 config ARCH_SHARK
 	bool "Shark"
 	select CPU_SA110
@@ -811,6 +819,8 @@ if ARCH_S5PC1XX
 source "arch/arm/mach-s5pc100/Kconfig"
 endif
 
+source "arch/arm/mach-s5pv210/Kconfig"
+
 source "arch/arm/mach-lh7a40x/Kconfig"
 
 source "arch/arm/mach-h720x/Kconfig"
@@ -1085,7 +1095,7 @@ source kernel/Kconfig.preempt
 config HZ
 	int
 	default 128 if ARCH_L7200
-	default 200 if ARCH_EBSA110 || ARCH_S3C2410 || ARCH_S5P6440
+	default 200 if ARCH_EBSA110 || ARCH_S3C2410 || ARCH_S5P6440 || ARCH_S5PV210
 	default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER
 	default AT91_TIMER_HZ if ARCH_AT91
 	default 100
arch/arm/Makefile +1 -0
index bbcd512..c968bde 100644
@@ -163,6 +163,7 @@ machine-$(CONFIG_ARCH_S3C24A0)		:= s3c24a0
 machine-$(CONFIG_ARCH_S3C64XX)		:= s3c6400 s3c6410
 machine-$(CONFIG_ARCH_S5P6440)		:= s5p6440
 machine-$(CONFIG_ARCH_S5PC1XX)		:= s5pc100
+machine-$(CONFIG_ARCH_S5PV210)		:= s5pv210
 machine-$(CONFIG_ARCH_SA1100)		:= sa1100
 machine-$(CONFIG_ARCH_SHARK)		:= shark
 machine-$(CONFIG_ARCH_STMP378X)		:= stmp378x
arch/arm/mm/Kconfig +1 -1
index baf6384..91617f7 100644
@@ -779,5 +779,5 @@ config CACHE_XSC3L2
 
 config ARM_L1_CACHE_SHIFT
 	int
-	default 6 if ARCH_OMAP3 || ARCH_S5PC1XX
+	default 6 if ARCH_OMAP3 || ARCH_S5PC1XX || ARCH_S5PV210
 	default 5
arch/arm/plat-s5p/Kconfig +1 -1
index fca6dad..225ab11 100644
@@ -7,7 +7,7 @@
 
 config PLAT_S5P
 	bool
-	depends on ARCH_S5P6440
+	depends on (ARCH_S5P6440 || ARCH_S5PV210)
 	default y
 	select PLAT_S3C
 	select ARM_VIC
Signature · 1 line
1.6.2.5
#1 lore raw

PATCH v4 4/8 ARM: S5PV210: Update Kconfig and Makefiles

Hello,

Quoted 11 lines · Kukjin Kim

Updates arch/arm Kconfig and Makefile for building the S5PV210 support. Also modifies the plat-s5p Kconfig file to include the support for plat-s5p for S5PV210.

---
 arch/arm/Kconfig          |   12 +++++++++++-
 arch/arm/Makefile         |    1 +
 arch/arm/mm/Kconfig       |    2 +-
 arch/arm/plat-s5p/Kconfig |    2 +-
 4 files changed, 14 insertions(+), 3 deletions(-)

snip

arch/arm/mm/Kconfig config CACHE_XSC3L2 · line 783

Quoted 11 lines
arch/arm/mm/Kconfig +1 -1
index baf6384..91617f7 100644
@@ -779,5 +779,5 @@ config CACHE_XSC3L2
 
 config ARM_L1_CACHE_SHIFT
 	int
-	default 6 if ARCH_OMAP3 || ARCH_S5PC1XX
+	default 6 if ARCH_OMAP3 || ARCH_S5PC1XX || ARCH_S5PV210
 	default 5

This should be a separate patch, because it modifies other kernel subsystem (ARM MM) than the others (Samsung sub-tree).

Anyway, what about introducing new Kconfig option
PLAT_SAMSUNG_HAS_6_L1_CACHE_SHIFT?

Then we can depend ARM_L1_CACHE_SHIFT = 6 on it. The option is would be selected by ARCH_S5PC1XX and ARCH_S5PV210. There might be other Samsung chips in the future that would require this and this way it can be properly handled inside Samsung plat Kconfigs.

Best regards
--
Marek Szyprowski
Samsung Poland R&D Center

#2 lore raw

PATCH v4 4/8 ARM: S5PV210: Update Kconfig and Makefiles

Quoted 33 lines · Marek Szyprowski

Hello,

Quoted 11 lines · Kukjin Kim

Updates arch/arm Kconfig and Makefile for building the S5PV210 support. Also modifies the plat-s5p Kconfig file to include the support for plat-s5p for S5PV210.

---
 arch/arm/Kconfig          |   12 +++++++++++-
 arch/arm/Makefile         |    1 +
 arch/arm/mm/Kconfig       |    2 +-
 arch/arm/plat-s5p/Kconfig |    2 +-
 4 files changed, 14 insertions(+), 3 deletions(-)

snip

arch/arm/mm/Kconfig config CACHE_XSC3L2 · line 783

Quoted 11 lines
arch/arm/mm/Kconfig +1 -1
index baf6384..91617f7 100644
@@ -779,5 +779,5 @@ config CACHE_XSC3L2
 
 config ARM_L1_CACHE_SHIFT
 	int
-	default 6 if ARCH_OMAP3 || ARCH_S5PC1XX
+	default 6 if ARCH_OMAP3 || ARCH_S5PC1XX || ARCH_S5PV210
 	default 5

This should be a separate patch, because it modifies other kernel subsystem (ARM MM) than the others (Samsung sub-tree).

Quoted 2 lines

Anyway, what about introducing new Kconfig option
PLAT_SAMSUNG_HAS_6_L1_CACHE_SHIFT?

even better, how about ARM_L1_CACHE_SHIFT_BY6 ?

Quoted 11 lines

Then we can depend ARM_L1_CACHE_SHIFT = 6 on it. The option is would be selected by ARCH_S5PC1XX and ARCH_S5PV210. There might be other Samsung chips in the future that would require this and this way it can be properly handled inside Samsung plat Kconfigs.

Best regards
--
Marek Szyprowski
Samsung Poland R&D Center

Signature · 5 lines
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.