diff options
Diffstat (limited to 'arch/arm/mach-ixp4xx/nslu2-setup.c')
-rw-r--r-- | arch/arm/mach-ixp4xx/nslu2-setup.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp4xx/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c index ff6a08d02cc4..c14e0034be4b 100644 --- a/arch/arm/mach-ixp4xx/nslu2-setup.c +++ b/arch/arm/mach-ixp4xx/nslu2-setup.c | |||
@@ -26,13 +26,32 @@ | |||
26 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
27 | #include <linux/i2c-gpio.h> | 27 | #include <linux/i2c-gpio.h> |
28 | #include <linux/io.h> | 28 | #include <linux/io.h> |
29 | |||
30 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
31 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/flash.h> | 31 | #include <asm/mach/flash.h> |
33 | #include <asm/mach/time.h> | 32 | #include <asm/mach/time.h> |
34 | #include <asm/gpio.h> | 33 | #include <asm/gpio.h> |
35 | 34 | ||
35 | #define NSLU2_SDA_PIN 7 | ||
36 | #define NSLU2_SCL_PIN 6 | ||
37 | |||
38 | /* NSLU2 Timer */ | ||
39 | #define NSLU2_FREQ 66000000 | ||
40 | |||
41 | /* Buttons */ | ||
42 | #define NSLU2_PB_GPIO 5 /* power button */ | ||
43 | #define NSLU2_PO_GPIO 8 /* power off */ | ||
44 | #define NSLU2_RB_GPIO 12 /* reset button */ | ||
45 | |||
46 | /* Buzzer */ | ||
47 | #define NSLU2_GPIO_BUZZ 4 | ||
48 | |||
49 | /* LEDs */ | ||
50 | #define NSLU2_LED_RED_GPIO 0 | ||
51 | #define NSLU2_LED_GRN_GPIO 1 | ||
52 | #define NSLU2_LED_DISK1_GPIO 3 | ||
53 | #define NSLU2_LED_DISK2_GPIO 2 | ||
54 | |||
36 | static struct flash_platform_data nslu2_flash_data = { | 55 | static struct flash_platform_data nslu2_flash_data = { |
37 | .map_name = "cfi_probe", | 56 | .map_name = "cfi_probe", |
38 | .width = 2, | 57 | .width = 2, |