diff options
Diffstat (limited to 'arch/arm/mach-s3c2416/mach-smdk2416.c')
-rw-r--r-- | arch/arm/mach-s3c2416/mach-smdk2416.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2416/mach-smdk2416.c b/arch/arm/mach-s3c2416/mach-smdk2416.c index 7fc366476d7e..3f83177246c7 100644 --- a/arch/arm/mach-s3c2416/mach-smdk2416.c +++ b/arch/arm/mach-s3c2416/mach-smdk2416.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include <plat/devs.h> | 46 | #include <plat/devs.h> |
47 | #include <plat/cpu.h> | 47 | #include <plat/cpu.h> |
48 | #include <plat/nand.h> | 48 | #include <plat/nand.h> |
49 | #include <plat/sdhci.h> | ||
49 | 50 | ||
50 | #include <plat/regs-fb-v4.h> | 51 | #include <plat/regs-fb-v4.h> |
51 | #include <plat/fb.h> | 52 | #include <plat/fb.h> |
@@ -110,6 +111,13 @@ static struct s3c2410_uartcfg smdk2416_uartcfgs[] __initdata = { | |||
110 | .ucon = UCON, | 111 | .ucon = UCON, |
111 | .ulcon = ULCON | 0x50, | 112 | .ulcon = ULCON | 0x50, |
112 | .ufcon = UFCON, | 113 | .ufcon = UFCON, |
114 | }, | ||
115 | [3] = { | ||
116 | .hwport = 3, | ||
117 | .flags = 0, | ||
118 | .ucon = UCON, | ||
119 | .ulcon = ULCON, | ||
120 | .ufcon = UFCON, | ||
113 | } | 121 | } |
114 | }; | 122 | }; |
115 | 123 | ||
@@ -159,6 +167,18 @@ static struct s3c_fb_platdata smdk2416_fb_platdata = { | |||
159 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC, | 167 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC, |
160 | }; | 168 | }; |
161 | 169 | ||
170 | static struct s3c_sdhci_platdata smdk2416_hsmmc0_pdata __initdata = { | ||
171 | .max_width = 4, | ||
172 | .cd_type = S3C_SDHCI_CD_GPIO, | ||
173 | .ext_cd_gpio = S3C2410_GPF(1), | ||
174 | .ext_cd_gpio_invert = 1, | ||
175 | }; | ||
176 | |||
177 | static struct s3c_sdhci_platdata smdk2416_hsmmc1_pdata __initdata = { | ||
178 | .max_width = 4, | ||
179 | .cd_type = S3C_SDHCI_CD_NONE, | ||
180 | }; | ||
181 | |||
162 | static struct platform_device *smdk2416_devices[] __initdata = { | 182 | static struct platform_device *smdk2416_devices[] __initdata = { |
163 | &s3c_device_fb, | 183 | &s3c_device_fb, |
164 | &s3c_device_wdt, | 184 | &s3c_device_wdt, |
@@ -180,6 +200,9 @@ static void __init smdk2416_machine_init(void) | |||
180 | s3c_i2c0_set_platdata(NULL); | 200 | s3c_i2c0_set_platdata(NULL); |
181 | s3c_fb_set_platdata(&smdk2416_fb_platdata); | 201 | s3c_fb_set_platdata(&smdk2416_fb_platdata); |
182 | 202 | ||
203 | s3c_sdhci0_set_platdata(&smdk2416_hsmmc0_pdata); | ||
204 | s3c_sdhci1_set_platdata(&smdk2416_hsmmc1_pdata); | ||
205 | |||
183 | gpio_request(S3C2410_GPB(4), "USBHost Power"); | 206 | gpio_request(S3C2410_GPB(4), "USBHost Power"); |
184 | gpio_direction_output(S3C2410_GPB(4), 1); | 207 | gpio_direction_output(S3C2410_GPB(4), 1); |
185 | 208 | ||