diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-11-16 10:06:47 -0500 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2009-12-05 10:58:39 -0500 |
commit | 23fa6846a2e2ac6fcb6529f047570244ecbd957c (patch) | |
tree | c3d11462ad84b5f154fd85cac71390dd6618bea6 /arch/arm/mach-ixp4xx/nas100d-setup.c | |
parent | c1117c63d53cc269193d02383b4275ae5c4cbe49 (diff) |
IXP4xx: move NAS100D platform macros to the platform code.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'arch/arm/mach-ixp4xx/nas100d-setup.c')
-rw-r--r-- | arch/arm/mach-ixp4xx/nas100d-setup.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c index 921c947b5b6b..e3ee880aa1e6 100644 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c | |||
@@ -29,12 +29,26 @@ | |||
29 | #include <linux/i2c.h> | 29 | #include <linux/i2c.h> |
30 | #include <linux/i2c-gpio.h> | 30 | #include <linux/i2c-gpio.h> |
31 | #include <linux/io.h> | 31 | #include <linux/io.h> |
32 | |||
33 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
34 | #include <asm/mach/arch.h> | 33 | #include <asm/mach/arch.h> |
35 | #include <asm/mach/flash.h> | 34 | #include <asm/mach/flash.h> |
36 | #include <asm/gpio.h> | 35 | #include <asm/gpio.h> |
37 | 36 | ||
37 | #define NAS100D_SDA_PIN 5 | ||
38 | #define NAS100D_SCL_PIN 6 | ||
39 | |||
40 | /* Buttons */ | ||
41 | #define NAS100D_PB_GPIO 14 /* power button */ | ||
42 | #define NAS100D_RB_GPIO 4 /* reset button */ | ||
43 | |||
44 | /* Power control */ | ||
45 | #define NAS100D_PO_GPIO 12 /* power off */ | ||
46 | |||
47 | /* LEDs */ | ||
48 | #define NAS100D_LED_WLAN_GPIO 0 | ||
49 | #define NAS100D_LED_DISK_GPIO 3 | ||
50 | #define NAS100D_LED_PWR_GPIO 15 | ||
51 | |||
38 | static struct flash_platform_data nas100d_flash_data = { | 52 | static struct flash_platform_data nas100d_flash_data = { |
39 | .map_name = "cfi_probe", | 53 | .map_name = "cfi_probe", |
40 | .width = 2, | 54 | .width = 2, |