| .. | .. |
|---|
| 29 | 29 | #include <asm/mach/arch.h> |
|---|
| 30 | 30 | #include <asm/mach/flash.h> |
|---|
| 31 | 31 | |
|---|
| 32 | +#include "irqs.h" |
|---|
| 33 | + |
|---|
| 32 | 34 | #define FSG_SDA_PIN 12 |
|---|
| 33 | 35 | #define FSG_SCL_PIN 13 |
|---|
| 34 | 36 | |
|---|
| .. | .. |
|---|
| 130 | 132 | }; |
|---|
| 131 | 133 | |
|---|
| 132 | 134 | /* Built-in 10/100 Ethernet MAC interfaces */ |
|---|
| 135 | +static struct resource fsg_eth_npeb_resources[] = { |
|---|
| 136 | + { |
|---|
| 137 | + .start = IXP4XX_EthB_BASE_PHYS, |
|---|
| 138 | + .end = IXP4XX_EthB_BASE_PHYS + 0x0fff, |
|---|
| 139 | + .flags = IORESOURCE_MEM, |
|---|
| 140 | + }, |
|---|
| 141 | +}; |
|---|
| 142 | + |
|---|
| 143 | +static struct resource fsg_eth_npec_resources[] = { |
|---|
| 144 | + { |
|---|
| 145 | + .start = IXP4XX_EthC_BASE_PHYS, |
|---|
| 146 | + .end = IXP4XX_EthC_BASE_PHYS + 0x0fff, |
|---|
| 147 | + .flags = IORESOURCE_MEM, |
|---|
| 148 | + }, |
|---|
| 149 | +}; |
|---|
| 150 | + |
|---|
| 133 | 151 | static struct eth_plat_info fsg_plat_eth[] = { |
|---|
| 134 | 152 | { |
|---|
| 135 | 153 | .phy = 5, |
|---|
| .. | .. |
|---|
| 149 | 167 | .dev = { |
|---|
| 150 | 168 | .platform_data = fsg_plat_eth, |
|---|
| 151 | 169 | }, |
|---|
| 170 | + .num_resources = ARRAY_SIZE(fsg_eth_npeb_resources), |
|---|
| 171 | + .resource = fsg_eth_npeb_resources, |
|---|
| 152 | 172 | }, { |
|---|
| 153 | 173 | .name = "ixp4xx_eth", |
|---|
| 154 | 174 | .id = IXP4XX_ETH_NPEC, |
|---|
| 155 | 175 | .dev = { |
|---|
| 156 | 176 | .platform_data = fsg_plat_eth + 1, |
|---|
| 157 | 177 | }, |
|---|
| 178 | + .num_resources = ARRAY_SIZE(fsg_eth_npec_resources), |
|---|
| 179 | + .resource = fsg_eth_npec_resources, |
|---|
| 158 | 180 | } |
|---|
| 159 | 181 | }; |
|---|
| 160 | 182 | |
|---|