| .. | .. |
|---|
| 34 | 34 | #include <asm/mach/arch.h> |
|---|
| 35 | 35 | #include <asm/mach/flash.h> |
|---|
| 36 | 36 | |
|---|
| 37 | +#include "irqs.h" |
|---|
| 38 | + |
|---|
| 37 | 39 | #define NAS100D_SDA_PIN 5 |
|---|
| 38 | 40 | #define NAS100D_SCL_PIN 6 |
|---|
| 39 | 41 | |
|---|
| .. | .. |
|---|
| 163 | 165 | }; |
|---|
| 164 | 166 | |
|---|
| 165 | 167 | /* Built-in 10/100 Ethernet MAC interfaces */ |
|---|
| 168 | +static struct resource nas100d_eth_resources[] = { |
|---|
| 169 | + { |
|---|
| 170 | + .start = IXP4XX_EthB_BASE_PHYS, |
|---|
| 171 | + .end = IXP4XX_EthB_BASE_PHYS + 0x0fff, |
|---|
| 172 | + .flags = IORESOURCE_MEM, |
|---|
| 173 | + }, |
|---|
| 174 | +}; |
|---|
| 175 | + |
|---|
| 166 | 176 | static struct eth_plat_info nas100d_plat_eth[] = { |
|---|
| 167 | 177 | { |
|---|
| 168 | 178 | .phy = 0, |
|---|
| .. | .. |
|---|
| 176 | 186 | .name = "ixp4xx_eth", |
|---|
| 177 | 187 | .id = IXP4XX_ETH_NPEB, |
|---|
| 178 | 188 | .dev.platform_data = nas100d_plat_eth, |
|---|
| 189 | + .num_resources = ARRAY_SIZE(nas100d_eth_resources), |
|---|
| 190 | + .resource = nas100d_eth_resources, |
|---|
| 179 | 191 | } |
|---|
| 180 | 192 | }; |
|---|
| 181 | 193 | |
|---|
| .. | .. |
|---|
| 278 | 290 | int i; |
|---|
| 279 | 291 | |
|---|
| 280 | 292 | ixp4xx_sys_init(); |
|---|
| 281 | | - |
|---|
| 282 | | - /* gpio 14 and 15 are _not_ clocks */ |
|---|
| 283 | | - *IXP4XX_GPIO_GPCLKR = 0; |
|---|
| 284 | 293 | |
|---|
| 285 | 294 | nas100d_flash_resource.start = IXP4XX_EXP_BUS_BASE(0); |
|---|
| 286 | 295 | nas100d_flash_resource.end = |
|---|