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/mach-s5pv210/setup-sdhci-gpio.c | |
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/mach-s5pv210/setup-sdhci-gpio.c')
-rw-r--r-- | arch/arm/mach-s5pv210/setup-sdhci-gpio.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/setup-sdhci-gpio.c b/arch/arm/mach-s5pv210/setup-sdhci-gpio.c index fe7d86dad14c..143bfec1e05f 100644 --- a/arch/arm/mach-s5pv210/setup-sdhci-gpio.c +++ b/arch/arm/mach-s5pv210/setup-sdhci-gpio.c | |||
@@ -102,3 +102,23 @@ void s5pv210_setup_sdhci2_cfg_gpio(struct platform_device *dev, int width) | |||
102 | s3c_gpio_setpull(S5PV210_GPG2(2), S3C_GPIO_PULL_UP); | 102 | s3c_gpio_setpull(S5PV210_GPG2(2), S3C_GPIO_PULL_UP); |
103 | s3c_gpio_cfgpin(S5PV210_GPG2(2), S3C_GPIO_SFN(2)); | 103 | s3c_gpio_cfgpin(S5PV210_GPG2(2), S3C_GPIO_SFN(2)); |
104 | } | 104 | } |
105 | |||
106 | void s5pv210_setup_sdhci3_cfg_gpio(struct platform_device *dev, int width) | ||
107 | { | ||
108 | unsigned int gpio; | ||
109 | |||
110 | /* Set all the necessary GPG3[0:2] pins to special-function 2 */ | ||
111 | for (gpio = S5PV210_GPG3(0); gpio < S5PV210_GPG3(2); gpio++) { | ||
112 | s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(2)); | ||
113 | s3c_gpio_setpull(gpio, S3C_GPIO_PULL_NONE); | ||
114 | } | ||
115 | |||
116 | /* Data pin GPG3[3:6] to special-function 2 */ | ||
117 | for (gpio = S5PV210_GPG3(3); gpio <= S5PV210_GPG3(6); gpio++) { | ||
118 | s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(2)); | ||
119 | s3c_gpio_setpull(gpio, S3C_GPIO_PULL_NONE); | ||
120 | } | ||
121 | |||
122 | s3c_gpio_setpull(S5PV210_GPG3(2), S3C_GPIO_PULL_UP); | ||
123 | s3c_gpio_cfgpin(S5PV210_GPG3(2), S3C_GPIO_SFN(2)); | ||
124 | } | ||