Skip to contentSkip to conversation

S5P6440: Add support for SDHCI interface.

PATCH In review Thomas Abraham 2 participants 2 messages Mar 9, 2010 – May 4, 2010

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

PATCH 1/1 S5P6440: Add support for SDHCI interface.

This patch adds support for SDHCI interface for Samsung's S5P6440 SoC.

---
 arch/arm/mach-s5p6440/Kconfig            |    9 +++++++++
 arch/arm/mach-s5p6440/cpu.c              |    4 ++++
 arch/arm/mach-s5p6440/include/mach/map.h |    3 +++
 arch/arm/plat-s5p/include/plat/s5p6440.h |    1 +
 drivers/mmc/host/Kconfig                 |    2 +-
 5 files changed, 18 insertions(+), 1 deletions(-)
arch/arm/mach-s5p6440/Kconfig +9 -0
index 4c29ff8..7a73ae2 100644
@@ -12,9 +12,18 @@ config CPU_S5P6440
 	help
 	  Enable S5P6440 CPU support
 
+config S5P6440_SETUP_SDHCI
+	bool
+	help
+	  Internal configuration for default SDHCI setup for S5P6440 SoC.
+
 config MACH_SMDK6440
 	bool "SMDK6440"
 	select CPU_S5P6440
+	select S5P6440_SETUP_SDHCI
+	select S3C_DEV_HSMMC
+	select S3C_DEV_HSMMC1
+	select S3C_DEV_HSMMC2
 	help
 	  Machine support for the Samsung SMDK6440
 
arch/arm/mach-s5p6440/cpu.c +4 -0
index 1794131..16f6f0d 100644
@@ -107,6 +107,10 @@ int __init s5p6440_init(void)
 {
 	printk(KERN_INFO "S5P6440: Initializing architecture\n");
 
+#ifdef CONFIG_MMC_SDHCI_S3C
+	s5p6440_setup_sdhci();
+#endif
+
 	/* set idle function */
 	pm_idle = s5p6440_idle;
 
arch/arm/mach-s5p6440/include/mach/map.h +3 -0
index 8924e5a..abf462b 100644
@@ -64,5 +64,8 @@
 /* compatibiltiy defines. */
 #define S3C_PA_UART		S5P6440_PA_UART
 #define S3C_PA_IIC		S5P6440_PA_IIC0
+#define S3C_PA_HSMMC0           S5P6440_PA_HSMMC0
+#define S3C_PA_HSMMC1           S5P6440_PA_HSMMC1
+#define S3C_PA_HSMMC2           S5P6440_PA_HSMMC2
 
 #endif /* __ASM_ARCH_MAP_H */
arch/arm/plat-s5p/include/plat/s5p6440.h +1 -0
index a4cd75a..0ca8daf 100644
@@ -15,6 +15,7 @@
 extern void s5p6440_common_init_uarts(struct s3c2410_uartcfg *cfg, int no);
 extern void s5p6440_register_clocks(void);
 extern void s5p6440_setup_clocks(void);
+extern void s5p6440_setup_sdhci(void);
 
 #ifdef CONFIG_CPU_S5P6440
 
drivers/mmc/host/Kconfig +1 -1
index ce1d288..811d00b 100644
@@ -127,7 +127,7 @@ config MMC_SDHCI_PLTFM
 
 config MMC_SDHCI_S3C
 	tristate "SDHCI support on Samsung S3C SoC"
-	depends on MMC_SDHCI && (PLAT_S3C24XX || PLAT_S3C64XX)
+	depends on MMC_SDHCI && (PLAT_S3C24XX || PLAT_S3C64XX || PLAT_S5P)
 	help
 	  This selects the Secure Digital Host Controller Interface (SDHCI)
 	  often referrered to as the HSMMC block in some of the Samsung S3C
Signature · 1 line
1.6.6.rc2
#1 lore raw
Quoted 79 lines · Thomas Abraham

This patch adds support for SDHCI interface for Samsung's S5P6440 SoC.

---
 arch/arm/mach-s5p6440/Kconfig            |    9 +++++++++
 arch/arm/mach-s5p6440/cpu.c              |    4 ++++
 arch/arm/mach-s5p6440/include/mach/map.h |    3 +++
 arch/arm/plat-s5p/include/plat/s5p6440.h |    1 +
 drivers/mmc/host/Kconfig                 |    2 +-
 5 files changed, 18 insertions(+), 1 deletions(-)
arch/arm/mach-s5p6440/Kconfig +9 -0
index 4c29ff8..7a73ae2 100644
@@ -12,9 +12,18 @@ config CPU_S5P6440
 	help
 	  Enable S5P6440 CPU support
 
+config S5P6440_SETUP_SDHCI
+	bool
+	help
+	  Internal configuration for default SDHCI setup for S5P6440 SoC.
+
 config MACH_SMDK6440
 	bool "SMDK6440"
 	select CPU_S5P6440
+	select S5P6440_SETUP_SDHCI
+	select S3C_DEV_HSMMC
+	select S3C_DEV_HSMMC1
+	select S3C_DEV_HSMMC2
 	help
 	  Machine support for the Samsung SMDK6440
 
arch/arm/mach-s5p6440/cpu.c +4 -0
index 1794131..16f6f0d 100644
@@ -107,6 +107,10 @@ int __init s5p6440_init(void)
 {
 	printk(KERN_INFO "S5P6440: Initializing architecture\n");
 
+#ifdef CONFIG_MMC_SDHCI_S3C
+	s5p6440_setup_sdhci();
+#endif
+
 	/* set idle function */
 	pm_idle = s5p6440_idle;
 
arch/arm/mach-s5p6440/include/mach/map.h +3 -0
index 8924e5a..abf462b 100644
@@ -64,5 +64,8 @@
 /* compatibiltiy defines. */
 #define S3C_PA_UART		S5P6440_PA_UART
 #define S3C_PA_IIC		S5P6440_PA_IIC0
+#define S3C_PA_HSMMC0           S5P6440_PA_HSMMC0
+#define S3C_PA_HSMMC1           S5P6440_PA_HSMMC1
+#define S3C_PA_HSMMC2           S5P6440_PA_HSMMC2
 
 #endif /* __ASM_ARCH_MAP_H */
arch/arm/plat-s5p/include/plat/s5p6440.h +1 -0
index a4cd75a..0ca8daf 100644
@@ -15,6 +15,7 @@
 extern void s5p6440_common_init_uarts(struct s3c2410_uartcfg *cfg, int no);
 extern void s5p6440_register_clocks(void);
 extern void s5p6440_setup_clocks(void);
+extern void s5p6440_setup_sdhci(void);
 
 #ifdef CONFIG_CPU_S5P6440
 
drivers/mmc/host/Kconfig +0 -0
index ce1d288..811d00b 100644

drivers/mmc/host/Kconfig config MMC_SDHCI_PLTFM · line 133

Quoted 8 lines
drivers/mmc/host/Kconfig +1 -1
@@ -127,7 +127,7 @@ config MMC_SDHCI_PLTFM
 
 config MMC_SDHCI_S3C
 	tristate "SDHCI support on Samsung S3C SoC"
-	depends on MMC_SDHCI && (PLAT_S3C24XX || PLAT_S3C64XX)
+	depends on MMC_SDHCI && (PLAT_S3C24XX || PLAT_S3C64XX || PLAT_S5P)
 	help
 	  This selects the Secure Digital Host Controller Interface (SDHCI)
 	  often referrered to as the HSMMC block in some of the Samsung S3C

Hmm, should we change to depending on PLAT_SAMSUNG instead, or have a HAVE_S3C_SDHCI which the relevant platforms/SoCs select? not all S3C24XX have this.

Quoted 6 lines

1.6.6.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
-- 
Ben

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