20 #include <linux/if_ether.h>
22 #include <linux/serial.h>
25 #include <linux/reboot.h>
26 #include <linux/i2c.h>
34 #define NSLU2_SDA_PIN 7
35 #define NSLU2_SCL_PIN 6
38 #define NSLU2_FREQ 66000000
41 #define NSLU2_PB_GPIO 5
42 #define NSLU2_PO_GPIO 8
43 #define NSLU2_RB_GPIO 12
46 #define NSLU2_GPIO_BUZZ 4
49 #define NSLU2_LED_RED_GPIO 0
50 #define NSLU2_LED_GRN_GPIO 1
51 #define NSLU2_LED_DISK1_GPIO 3
52 #define NSLU2_LED_DISK2_GPIO 2
55 .map_name =
"cfi_probe",
59 static struct resource nslu2_flash_resource = {
64 .name =
"IXP4XX-Flash",
66 .dev.platform_data = &nslu2_flash_data,
68 .resource = &nslu2_flash_resource,
82 static struct gpio_led nslu2_led_pins[] = {
84 .name =
"nslu2:green:ready",
88 .name =
"nslu2:red:status",
92 .name =
"nslu2:green:disk-1",
97 .name =
"nslu2:green:disk-2",
105 .leds = nslu2_led_pins,
111 .dev.platform_data = &nslu2_led_data,
118 .platform_data = &nslu2_i2c_gpio_data,
123 .name =
"ixp4xx-beeper",
128 static struct resource nslu2_uart_resources[] = {
164 .name =
"serial8250",
166 .dev.platform_data = nslu2_uart_data,
168 .resource = nslu2_uart_resources,
182 .name =
"ixp4xx_eth",
184 .dev.platform_data = nslu2_plat_eth,
196 static void nslu2_power_off(
void)
226 static void __init nslu2_timer_init(
void)
236 .init = nslu2_timer_init,
239 static void __init nslu2_init(
void)
247 nslu2_flash_resource.
end =
266 "NSLU2 reset button",
NULL) < 0) {
274 "NSLU2 power button",
NULL) < 0) {
287 for (i = 0; i < 6; i++)
289 nslu2_plat_eth[0].hwaddr[i] =
readb(f + 0x3FFB0 + i);
291 nslu2_plat_eth[0].
hwaddr[
i] =
readb(f + 0x3FFB0 + (i^3));
296 nslu2_plat_eth[0].hwaddr);
302 .atag_offset = 0x100,
306 .timer = &nslu2_timer,
307 .init_machine = nslu2_init,
308 #if defined(CONFIG_PCI)