| .. | .. |
|---|
| 32 | 32 | #include <asm/mach/flash.h> |
|---|
| 33 | 33 | #include <asm/mach/time.h> |
|---|
| 34 | 34 | |
|---|
| 35 | +#include "irqs.h" |
|---|
| 36 | + |
|---|
| 35 | 37 | #define NSLU2_SDA_PIN 7 |
|---|
| 36 | 38 | #define NSLU2_SCL_PIN 6 |
|---|
| 37 | 39 | |
|---|
| .. | .. |
|---|
| 125 | 127 | }, |
|---|
| 126 | 128 | }; |
|---|
| 127 | 129 | |
|---|
| 130 | +static struct resource nslu2_beeper_resources[] = { |
|---|
| 131 | + { |
|---|
| 132 | + .start = IRQ_IXP4XX_TIMER2, |
|---|
| 133 | + .flags = IORESOURCE_IRQ, |
|---|
| 134 | + }, |
|---|
| 135 | +}; |
|---|
| 136 | + |
|---|
| 128 | 137 | static struct platform_device nslu2_beeper = { |
|---|
| 129 | 138 | .name = "ixp4xx-beeper", |
|---|
| 130 | 139 | .id = NSLU2_GPIO_BUZZ, |
|---|
| 131 | | - .num_resources = 0, |
|---|
| 140 | + .resource = nslu2_beeper_resources, |
|---|
| 141 | + .num_resources = ARRAY_SIZE(nslu2_beeper_resources), |
|---|
| 132 | 142 | }; |
|---|
| 133 | 143 | |
|---|
| 134 | 144 | static struct resource nslu2_uart_resources[] = { |
|---|
| .. | .. |
|---|
| 175 | 185 | }; |
|---|
| 176 | 186 | |
|---|
| 177 | 187 | /* Built-in 10/100 Ethernet MAC interfaces */ |
|---|
| 188 | +static struct resource nslu2_eth_resources[] = { |
|---|
| 189 | + { |
|---|
| 190 | + .start = IXP4XX_EthB_BASE_PHYS, |
|---|
| 191 | + .end = IXP4XX_EthB_BASE_PHYS + 0x0fff, |
|---|
| 192 | + .flags = IORESOURCE_MEM, |
|---|
| 193 | + }, |
|---|
| 194 | +}; |
|---|
| 195 | + |
|---|
| 178 | 196 | static struct eth_plat_info nslu2_plat_eth[] = { |
|---|
| 179 | 197 | { |
|---|
| 180 | 198 | .phy = 1, |
|---|
| .. | .. |
|---|
| 188 | 206 | .name = "ixp4xx_eth", |
|---|
| 189 | 207 | .id = IXP4XX_ETH_NPEB, |
|---|
| 190 | 208 | .dev.platform_data = nslu2_plat_eth, |
|---|
| 209 | + .num_resources = ARRAY_SIZE(nslu2_eth_resources), |
|---|
| 210 | + .resource = nslu2_eth_resources, |
|---|
| 191 | 211 | } |
|---|
| 192 | 212 | }; |
|---|
| 193 | 213 | |
|---|