diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-12-19 08:32:06 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-03-13 05:34:37 -0400 |
commit | 2adc1d654e41f4308193fdd46cee885b7a35c149 (patch) | |
tree | db383794ca8cb4e82339769aa0d08b660cbbbd0f | |
parent | 1a02be0ee77b68aef67b656bc47f0fb4ab177e67 (diff) |
MX31: Add sdhc resources/platform devices
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-mx3/devices.c | 40 | ||||
-rw-r--r-- | arch/arm/mach-mx3/devices.h | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index ab090602cea4..380be0c9b213 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -245,6 +245,46 @@ struct platform_device mxc_i2c_device2 = { | |||
245 | .resource = mxc_i2c2_resources, | 245 | .resource = mxc_i2c2_resources, |
246 | }; | 246 | }; |
247 | 247 | ||
248 | #ifdef CONFIG_ARCH_MX31 | ||
249 | static struct resource mxcsdhc0_resources[] = { | ||
250 | { | ||
251 | .start = MMC_SDHC1_BASE_ADDR, | ||
252 | .end = MMC_SDHC1_BASE_ADDR + SZ_16K - 1, | ||
253 | .flags = IORESOURCE_MEM, | ||
254 | }, { | ||
255 | .start = MXC_INT_MMC_SDHC1, | ||
256 | .end = MXC_INT_MMC_SDHC1, | ||
257 | .flags = IORESOURCE_IRQ, | ||
258 | }, | ||
259 | }; | ||
260 | |||
261 | static struct resource mxcsdhc1_resources[] = { | ||
262 | { | ||
263 | .start = MMC_SDHC2_BASE_ADDR, | ||
264 | .end = MMC_SDHC2_BASE_ADDR + SZ_16K - 1, | ||
265 | .flags = IORESOURCE_MEM, | ||
266 | }, { | ||
267 | .start = MXC_INT_MMC_SDHC2, | ||
268 | .end = MXC_INT_MMC_SDHC2, | ||
269 | .flags = IORESOURCE_IRQ, | ||
270 | }, | ||
271 | }; | ||
272 | |||
273 | struct platform_device mxcsdhc_device0 = { | ||
274 | .name = "mxc-mmc", | ||
275 | .id = 0, | ||
276 | .num_resources = ARRAY_SIZE(mxcsdhc0_resources), | ||
277 | .resource = mxcsdhc0_resources, | ||
278 | }; | ||
279 | |||
280 | struct platform_device mxcsdhc_device1 = { | ||
281 | .name = "mxc-mmc", | ||
282 | .id = 1, | ||
283 | .num_resources = ARRAY_SIZE(mxcsdhc1_resources), | ||
284 | .resource = mxcsdhc1_resources, | ||
285 | }; | ||
286 | #endif /* CONFIG_ARCH_MX31 */ | ||
287 | |||
248 | /* i.MX31 Image Processing Unit */ | 288 | /* i.MX31 Image Processing Unit */ |
249 | 289 | ||
250 | /* The resource order is important! */ | 290 | /* The resource order is important! */ |
diff --git a/arch/arm/mach-mx3/devices.h b/arch/arm/mach-mx3/devices.h index 4faac6552e00..88c04b296fab 100644 --- a/arch/arm/mach-mx3/devices.h +++ b/arch/arm/mach-mx3/devices.h | |||
@@ -12,3 +12,5 @@ extern struct platform_device mxc_i2c_device2; | |||
12 | extern struct platform_device mx3_ipu; | 12 | extern struct platform_device mx3_ipu; |
13 | extern struct platform_device mx3_fb; | 13 | extern struct platform_device mx3_fb; |
14 | extern struct platform_device mxc_fec_device; | 14 | extern struct platform_device mxc_fec_device; |
15 | extern struct platform_device mxcsdhc_device0; | ||
16 | extern struct platform_device mxcsdhc_device1; | ||