diff options
author | wanzongshun <mcuos.com@gmail.com> | 2009-07-23 09:47:57 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-07-23 11:24:29 +0200 |
commit | 768db4e04b4c969cf3a9e81a79a10af6468ca56d (patch) | |
tree | 4de5f2caa6eed65233beea29b90cd0de9e73aceb /arch/arm/mach-w90x900 | |
parent | [ARM] 5610/1: Add fmi resource define for w90p910 platform (diff) | |
download | linux-768db4e04b4c969cf3a9e81a79a10af6468ca56d.tar.xz linux-768db4e04b4c969cf3a9e81a79a10af6468ca56d.zip |
[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 = { .resource = w90p910_fmi_resource, }; +/* MAC device */ + +static struct resource w90x900_emc_resource[] = { + [0] = { + .start = W90X900_PA_EMC, + .end = W90X900_PA_EMC + W90X900_SZ_EMC - 1, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_EMCTX, + .end = IRQ_EMCTX, + .flags = IORESOURCE_IRQ, + }, + [2] = { + .start = IRQ_EMCRX, + .end = IRQ_EMCRX, + .flags = IORESOURCE_IRQ, + } +}; + +static u64 w90x900_device_emc_dmamask = 0xffffffffUL; +static struct platform_device w90p910_device_emc = { + .name = "w90p910-emc", + .id = -1, + .num_resources = ARRAY_SIZE(w90x900_emc_resource), + .resource = w90x900_emc_resource, + .dev = { + .dma_mask = &w90x900_device_emc_dmamask, + .coherent_dma_mask = 0xffffffffUL + } +}; + static struct map_desc w90p910_iodesc[] __initdata = { }; @@ -265,6 +297,7 @@ static struct platform_device *w90p910evb_dev[] __initdata = { &w90x900_device_kpi, &w90x900_device_usbgadget, &w90p910_device_fmi, + &w90p910_device_emc, }; static void __init w90p910evb_map_io(void) |