diff options
author | Hyuk Lee <hyuk1.lee@samsung.com> | 2010-06-13 21:18:56 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-08-05 05:31:01 -0400 |
commit | 976a62f21940a3a5e3978cb4b6394a21484d4264 (patch) | |
tree | 3563efbc2b20f749b8fb696253096f1f0f58faf1 /arch/arm/plat-samsung | |
parent | 88a1cc438aa008584d5657db4372ba468f8c31e6 (diff) |
ARM: S5PV210: Add support HSMMC on SMDKV210
This patch adds support HSMMC on SMDKV210, and gpio configuration for
S5PV210 hsmmc3.
Signed-off-by: Hyuk Lee <hyuk1.lee@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/sdhci.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/sdhci.h b/arch/arm/plat-samsung/include/plat/sdhci.h index 016674fa20dd..10413728530f 100644 --- a/arch/arm/plat-samsung/include/plat/sdhci.h +++ b/arch/arm/plat-samsung/include/plat/sdhci.h | |||
@@ -78,6 +78,7 @@ extern void s3c64xx_setup_sdhci2_cfg_gpio(struct platform_device *, int w); | |||
78 | extern void s5pv210_setup_sdhci0_cfg_gpio(struct platform_device *, int w); | 78 | extern void s5pv210_setup_sdhci0_cfg_gpio(struct platform_device *, int w); |
79 | extern void s5pv210_setup_sdhci1_cfg_gpio(struct platform_device *, int w); | 79 | extern void s5pv210_setup_sdhci1_cfg_gpio(struct platform_device *, int w); |
80 | extern void s5pv210_setup_sdhci2_cfg_gpio(struct platform_device *, int w); | 80 | extern void s5pv210_setup_sdhci2_cfg_gpio(struct platform_device *, int w); |
81 | extern void s5pv210_setup_sdhci3_cfg_gpio(struct platform_device *, int w); | ||
81 | 82 | ||
82 | /* S3C6400 SDHCI setup */ | 83 | /* S3C6400 SDHCI setup */ |
83 | 84 | ||
@@ -266,10 +267,22 @@ static inline void s5pv210_default_sdhci2(void) | |||
266 | static inline void s5pv210_default_sdhci2(void) { } | 267 | static inline void s5pv210_default_sdhci2(void) { } |
267 | #endif /* CONFIG_S3C_DEV_HSMMC2 */ | 268 | #endif /* CONFIG_S3C_DEV_HSMMC2 */ |
268 | 269 | ||
270 | #ifdef CONFIG_S3C_DEV_HSMMC3 | ||
271 | static inline void s5pv210_default_sdhci3(void) | ||
272 | { | ||
273 | s3c_hsmmc3_def_platdata.clocks = s5pv210_hsmmc_clksrcs; | ||
274 | s3c_hsmmc3_def_platdata.cfg_gpio = s5pv210_setup_sdhci3_cfg_gpio; | ||
275 | s3c_hsmmc3_def_platdata.cfg_card = s5pv210_setup_sdhci_cfg_card; | ||
276 | } | ||
277 | #else | ||
278 | static inline void s5pv210_default_sdhci3(void) { } | ||
279 | #endif /* CONFIG_S3C_DEV_HSMMC3 */ | ||
280 | |||
269 | #else | 281 | #else |
270 | static inline void s5pv210_default_sdhci0(void) { } | 282 | static inline void s5pv210_default_sdhci0(void) { } |
271 | static inline void s5pv210_default_sdhci1(void) { } | 283 | static inline void s5pv210_default_sdhci1(void) { } |
272 | static inline void s5pv210_default_sdhci2(void) { } | 284 | static inline void s5pv210_default_sdhci2(void) { } |
285 | static inline void s5pv210_default_sdhci3(void) { } | ||
273 | #endif /* CONFIG_S5PC100_SETUP_SDHCI */ | 286 | #endif /* CONFIG_S5PC100_SETUP_SDHCI */ |
274 | 287 | ||
275 | 288 | ||