diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-13 10:00:22 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-13 10:00:22 -0500 |
commit | 4de3a8e101150feaefa1139611a50ff37467f33e (patch) | |
tree | daada742542518b02d7db7c5d32e715eaa5f166d /arch/arm/mach-s5p64x0/mach-smdk6450.c | |
parent | 294064f58953f9964e5945424b09c51800330a83 (diff) | |
parent | 099469502f62fbe0d7e4f0b83a2f22538367f734 (diff) |
Merge branch 'master' into fixes
Diffstat (limited to 'arch/arm/mach-s5p64x0/mach-smdk6450.c')
-rw-r--r-- | arch/arm/mach-s5p64x0/mach-smdk6450.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/arch/arm/mach-s5p64x0/mach-smdk6450.c b/arch/arm/mach-s5p64x0/mach-smdk6450.c index 135cf5d84737..efb69e2f2afe 100644 --- a/arch/arm/mach-s5p64x0/mach-smdk6450.c +++ b/arch/arm/mach-s5p64x0/mach-smdk6450.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
25 | #include <linux/pwm_backlight.h> | 25 | #include <linux/pwm_backlight.h> |
26 | #include <linux/fb.h> | 26 | #include <linux/fb.h> |
27 | #include <linux/mmc/host.h> | ||
27 | 28 | ||
28 | #include <video/platform_lcd.h> | 29 | #include <video/platform_lcd.h> |
29 | 30 | ||
@@ -52,6 +53,7 @@ | |||
52 | #include <plat/backlight.h> | 53 | #include <plat/backlight.h> |
53 | #include <plat/fb.h> | 54 | #include <plat/fb.h> |
54 | #include <plat/regs-fb.h> | 55 | #include <plat/regs-fb.h> |
56 | #include <plat/sdhci.h> | ||
55 | 57 | ||
56 | #include "common.h" | 58 | #include "common.h" |
57 | 59 | ||
@@ -181,10 +183,28 @@ static struct platform_device *smdk6450_devices[] __initdata = { | |||
181 | &s5p6450_device_iis0, | 183 | &s5p6450_device_iis0, |
182 | &s3c_device_fb, | 184 | &s3c_device_fb, |
183 | &smdk6450_lcd_lte480wv, | 185 | &smdk6450_lcd_lte480wv, |
184 | 186 | &s3c_device_hsmmc0, | |
187 | &s3c_device_hsmmc1, | ||
188 | &s3c_device_hsmmc2, | ||
185 | /* s5p6450_device_spi0 will be added */ | 189 | /* s5p6450_device_spi0 will be added */ |
186 | }; | 190 | }; |
187 | 191 | ||
192 | static struct s3c_sdhci_platdata smdk6450_hsmmc0_pdata __initdata = { | ||
193 | .cd_type = S3C_SDHCI_CD_NONE, | ||
194 | }; | ||
195 | |||
196 | static struct s3c_sdhci_platdata smdk6450_hsmmc1_pdata __initdata = { | ||
197 | .cd_type = S3C_SDHCI_CD_NONE, | ||
198 | #if defined(CONFIG_S5P64X0_SD_CH1_8BIT) | ||
199 | .max_width = 8, | ||
200 | .host_caps = MMC_CAP_8_BIT_DATA, | ||
201 | #endif | ||
202 | }; | ||
203 | |||
204 | static struct s3c_sdhci_platdata smdk6450_hsmmc2_pdata __initdata = { | ||
205 | .cd_type = S3C_SDHCI_CD_NONE, | ||
206 | }; | ||
207 | |||
188 | static struct s3c2410_platform_i2c s5p6450_i2c0_data __initdata = { | 208 | static struct s3c2410_platform_i2c s5p6450_i2c0_data __initdata = { |
189 | .flags = 0, | 209 | .flags = 0, |
190 | .slave_addr = 0x10, | 210 | .slave_addr = 0x10, |
@@ -256,6 +276,10 @@ static void __init smdk6450_machine_init(void) | |||
256 | s5p6450_set_lcd_interface(); | 276 | s5p6450_set_lcd_interface(); |
257 | s3c_fb_set_platdata(&smdk6450_lcd_pdata); | 277 | s3c_fb_set_platdata(&smdk6450_lcd_pdata); |
258 | 278 | ||
279 | s3c_sdhci0_set_platdata(&smdk6450_hsmmc0_pdata); | ||
280 | s3c_sdhci1_set_platdata(&smdk6450_hsmmc1_pdata); | ||
281 | s3c_sdhci2_set_platdata(&smdk6450_hsmmc2_pdata); | ||
282 | |||
259 | platform_add_devices(smdk6450_devices, ARRAY_SIZE(smdk6450_devices)); | 283 | platform_add_devices(smdk6450_devices, ARRAY_SIZE(smdk6450_devices)); |
260 | } | 284 | } |
261 | 285 | ||