2 arch/arm/mach-ixp4xx/avila-setup.c | 50 ++++++++++++++++++++++++++++++++++++-
3 1 file changed, 49 insertions(+), 1 deletion(-)
5 Index: linux-2.6.21.7/arch/arm/mach-ixp4xx/avila-setup.c
6 ===================================================================
7 --- linux-2.6.21.7.orig/arch/arm/mach-ixp4xx/avila-setup.c
8 +++ linux-2.6.21.7/arch/arm/mach-ixp4xx/avila-setup.c
9 @@ -132,10 +132,60 @@ static struct platform_device avila_pata
10 .resource = avila_pata_resources,
14 +static struct resource res_mac0 = {
15 + .start = IXP4XX_EthB_BASE_PHYS,
16 + .end = IXP4XX_EthB_BASE_PHYS + 0x1ff,
17 + .flags = IORESOURCE_MEM,
20 +static struct resource res_mac1 = {
21 + .start = IXP4XX_EthC_BASE_PHYS,
22 + .end = IXP4XX_EthC_BASE_PHYS + 0x1ff,
23 + .flags = IORESOURCE_MEM,
26 +static struct mac_plat_info plat_mac0 = {
35 +static struct mac_plat_info plat_mac1 = {
44 +static struct platform_device mac0 = {
45 + .name = "ixp4xx_mac",
47 + .dev.platform_data = &plat_mac0,
49 + .resource = &res_mac0,
52 +static struct platform_device mac1 = {
53 + .name = "ixp4xx_mac",
55 + .dev.platform_data = &plat_mac1,
57 + .resource = &res_mac1,
60 static struct platform_device *avila_devices[] __initdata = {
61 &avila_i2c_controller,
70 static void __init avila_init(void)