diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-11-10 05:59:28 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-18 09:44:12 -0500 |
commit | 4a045cb306a349250cf50fc8ef1dddea0e8f395a (patch) | |
tree | 8bb71921cce402bc36cb1c5550f5e476ca768558 /arch/arm/mach-s3c2440 | |
parent | 6290ce30583017bf7916471f15ff4084137e5ce4 (diff) |
[ARM] S3C24XX: AT2440EVB MMC
Add SD/MMC support for AT2440EVB board.
Signed-off-by: Ramax Lo <ramaxlo@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2440')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-at2440evb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2440/mach-at2440evb.c b/arch/arm/mach-s3c2440/mach-at2440evb.c index 07b42a0207d1..8c6596eef162 100644 --- a/arch/arm/mach-s3c2440/mach-at2440evb.c +++ b/arch/arm/mach-s3c2440/mach-at2440evb.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <plat/clock.h> | 45 | #include <plat/clock.h> |
46 | #include <plat/devs.h> | 46 | #include <plat/devs.h> |
47 | #include <plat/cpu.h> | 47 | #include <plat/cpu.h> |
48 | #include <asm/plat-s3c24xx/mci.h> | ||
48 | 49 | ||
49 | static struct map_desc at2440evb_iodesc[] __initdata = { | 50 | static struct map_desc at2440evb_iodesc[] __initdata = { |
50 | /* Nothing here */ | 51 | /* Nothing here */ |
@@ -162,6 +163,10 @@ static struct platform_device at2440evb_device_eth = { | |||
162 | }, | 163 | }, |
163 | }; | 164 | }; |
164 | 165 | ||
166 | static struct s3c24xx_mci_pdata at2440evb_mci_pdata = { | ||
167 | .gpio_detect = S3C2410_GPG10, | ||
168 | }; | ||
169 | |||
165 | static struct platform_device *at2440evb_devices[] __initdata = { | 170 | static struct platform_device *at2440evb_devices[] __initdata = { |
166 | &s3c_device_usb, | 171 | &s3c_device_usb, |
167 | &s3c_device_wdt, | 172 | &s3c_device_wdt, |
@@ -169,12 +174,15 @@ static struct platform_device *at2440evb_devices[] __initdata = { | |||
169 | &s3c_device_i2c, | 174 | &s3c_device_i2c, |
170 | &s3c_device_rtc, | 175 | &s3c_device_rtc, |
171 | &s3c_device_nand, | 176 | &s3c_device_nand, |
177 | &s3c_device_sdi, | ||
172 | &at2440evb_device_eth, | 178 | &at2440evb_device_eth, |
173 | }; | 179 | }; |
174 | 180 | ||
175 | static void __init at2440evb_map_io(void) | 181 | static void __init at2440evb_map_io(void) |
176 | { | 182 | { |
177 | s3c_device_nand.dev.platform_data = &at2440evb_nand_info; | 183 | s3c_device_nand.dev.platform_data = &at2440evb_nand_info; |
184 | s3c_device_sdi.name = "s3c2440-sdi"; | ||
185 | s3c_device_sdi.dev.platform_data = &at2440evb_mci_pdata; | ||
178 | 186 | ||
179 | s3c24xx_init_io(at2440evb_iodesc, ARRAY_SIZE(at2440evb_iodesc)); | 187 | s3c24xx_init_io(at2440evb_iodesc, ARRAY_SIZE(at2440evb_iodesc)); |
180 | s3c24xx_init_clocks(16934400); | 188 | s3c24xx_init_clocks(16934400); |