diff options
author | wanzongshun <mcuos.com@gmail.com> | 2009-07-23 03:47:57 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-07-23 05:24:29 -0400 |
commit | 768db4e04b4c969cf3a9e81a79a10af6468ca56d (patch) | |
tree | 4de5f2caa6eed65233beea29b90cd0de9e73aceb /arch/arm/mach-w90x900 | |
parent | 42ff4cf957b695250534e540375e23507c722327 (diff) |
[ARM] 5616/1: Add mac resource define for w90p910 mac driver
Add mac resource define for w90p910 mac driver.
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-w90x900')
-rw-r--r-- | arch/arm/mach-w90x900/mach-w90p910evb.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/mach-w90p910evb.c b/arch/arm/mach-w90x900/mach-w90p910evb.c index 3b9fa312d9f5..2e56d84c6323 100644 --- a/arch/arm/mach-w90x900/mach-w90p910evb.c +++ b/arch/arm/mach-w90x900/mach-w90p910evb.c | |||
@@ -250,6 +250,38 @@ static struct platform_device w90p910_device_fmi = { | |||
250 | .resource = w90p910_fmi_resource, | 250 | .resource = w90p910_fmi_resource, |
251 | }; | 251 | }; |
252 | 252 | ||
253 | /* MAC device */ | ||
254 | |||
255 | static struct resource w90x900_emc_resource[] = { | ||
256 | [0] = { | ||
257 | .start = W90X900_PA_EMC, | ||
258 | .end = W90X900_PA_EMC + W90X900_SZ_EMC - 1, | ||
259 | .flags = IORESOURCE_MEM, | ||
260 | }, | ||
261 | [1] = { | ||
262 | .start = IRQ_EMCTX, | ||
263 | .end = IRQ_EMCTX, | ||
264 | .flags = IORESOURCE_IRQ, | ||
265 | }, | ||
266 | [2] = { | ||
267 | .start = IRQ_EMCRX, | ||
268 | .end = IRQ_EMCRX, | ||
269 | .flags = IORESOURCE_IRQ, | ||
270 | } | ||
271 | }; | ||
272 | |||
273 | static u64 w90x900_device_emc_dmamask = 0xffffffffUL; | ||
274 | static struct platform_device w90p910_device_emc = { | ||
275 | .name = "w90p910-emc", | ||
276 | .id = -1, | ||
277 | .num_resources = ARRAY_SIZE(w90x900_emc_resource), | ||
278 | .resource = w90x900_emc_resource, | ||
279 | .dev = { | ||
280 | .dma_mask = &w90x900_device_emc_dmamask, | ||
281 | .coherent_dma_mask = 0xffffffffUL | ||
282 | } | ||
283 | }; | ||
284 | |||
253 | static struct map_desc w90p910_iodesc[] __initdata = { | 285 | static struct map_desc w90p910_iodesc[] __initdata = { |
254 | }; | 286 | }; |
255 | 287 | ||
@@ -265,6 +297,7 @@ static struct platform_device *w90p910evb_dev[] __initdata = { | |||
265 | &w90x900_device_kpi, | 297 | &w90x900_device_kpi, |
266 | &w90x900_device_usbgadget, | 298 | &w90x900_device_usbgadget, |
267 | &w90p910_device_fmi, | 299 | &w90p910_device_fmi, |
300 | &w90p910_device_emc, | ||
268 | }; | 301 | }; |
269 | 302 | ||
270 | static void __init w90p910evb_map_io(void) | 303 | static void __init w90p910evb_map_io(void) |