diff options
author | Tony Lindgren <tony@atomide.com> | 2009-03-23 21:07:35 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-03-23 21:07:35 -0400 |
commit | b2830810fd8ca8cd8a929a6d6a6c886b1d689a51 (patch) | |
tree | 2b462d96459a77ed59e68a657683e4a2d4c5e634 /arch/arm/mach-omap1 | |
parent | 3a0110cdae41fb91d005c335db9e5e697dddc5cd (diff) |
ARM: OMAP: No need to include board-palm*.h from hardware.h
Move the defines to the associated board file and remove
the now unnecessary header files.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-palmte.c | 15 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-palmtt.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-palmz71.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-sx1-mmc.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-sx1.c | 1 |
5 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index 99f2b43f2541..55d524b78e2a 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c | |||
@@ -43,6 +43,21 @@ | |||
43 | #include <mach/keypad.h> | 43 | #include <mach/keypad.h> |
44 | #include <mach/common.h> | 44 | #include <mach/common.h> |
45 | 45 | ||
46 | #define PALMTE_USBDETECT_GPIO 0 | ||
47 | #define PALMTE_USB_OR_DC_GPIO 1 | ||
48 | #define PALMTE_TSC_GPIO 4 | ||
49 | #define PALMTE_PINTDAV_GPIO 6 | ||
50 | #define PALMTE_MMC_WP_GPIO 8 | ||
51 | #define PALMTE_MMC_POWER_GPIO 9 | ||
52 | #define PALMTE_HDQ_GPIO 11 | ||
53 | #define PALMTE_HEADPHONES_GPIO 14 | ||
54 | #define PALMTE_SPEAKER_GPIO 15 | ||
55 | #define PALMTE_DC_GPIO OMAP_MPUIO(2) | ||
56 | #define PALMTE_MMC_SWITCH_GPIO OMAP_MPUIO(4) | ||
57 | #define PALMTE_MMC1_GPIO OMAP_MPUIO(6) | ||
58 | #define PALMTE_MMC2_GPIO OMAP_MPUIO(7) | ||
59 | #define PALMTE_MMC3_GPIO OMAP_MPUIO(11) | ||
60 | |||
46 | static void __init omap_palmte_init_irq(void) | 61 | static void __init omap_palmte_init_irq(void) |
47 | { | 62 | { |
48 | omap1_init_common_hw(); | 63 | omap1_init_common_hw(); |
diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c index 1cbc1275c95f..9dc9d7931b55 100644 --- a/arch/arm/mach-omap1/board-palmtt.c +++ b/arch/arm/mach-omap1/board-palmtt.c | |||
@@ -43,6 +43,13 @@ | |||
43 | #include <linux/spi/spi.h> | 43 | #include <linux/spi/spi.h> |
44 | #include <linux/spi/ads7846.h> | 44 | #include <linux/spi/ads7846.h> |
45 | 45 | ||
46 | #define PALMTT_USBDETECT_GPIO 0 | ||
47 | #define PALMTT_CABLE_GPIO 1 | ||
48 | #define PALMTT_LED_GPIO 3 | ||
49 | #define PALMTT_PENIRQ_GPIO 6 | ||
50 | #define PALMTT_MMC_WP_GPIO 8 | ||
51 | #define PALMTT_HDQ_GPIO 11 | ||
52 | |||
46 | static int palmtt_keymap[] = { | 53 | static int palmtt_keymap[] = { |
47 | KEY(0, 0, KEY_ESC), | 54 | KEY(0, 0, KEY_ESC), |
48 | KEY(0, 1, KEY_SPACE), | 55 | KEY(0, 1, KEY_SPACE), |
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index baf5efbfe3e8..a2f99a46e7b4 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c | |||
@@ -46,6 +46,16 @@ | |||
46 | #include <linux/spi/spi.h> | 46 | #include <linux/spi/spi.h> |
47 | #include <linux/spi/ads7846.h> | 47 | #include <linux/spi/ads7846.h> |
48 | 48 | ||
49 | #define PALMZ71_USBDETECT_GPIO 0 | ||
50 | #define PALMZ71_PENIRQ_GPIO 6 | ||
51 | #define PALMZ71_MMC_WP_GPIO 8 | ||
52 | #define PALMZ71_HDQ_GPIO 11 | ||
53 | |||
54 | #define PALMZ71_HOTSYNC_GPIO OMAP_MPUIO(1) | ||
55 | #define PALMZ71_CABLE_GPIO OMAP_MPUIO(2) | ||
56 | #define PALMZ71_SLIDER_GPIO OMAP_MPUIO(3) | ||
57 | #define PALMZ71_MMC_IN_GPIO OMAP_MPUIO(4) | ||
58 | |||
49 | static void __init | 59 | static void __init |
50 | omap_palmz71_init_irq(void) | 60 | omap_palmz71_init_irq(void) |
51 | { | 61 | { |
diff --git a/arch/arm/mach-omap1/board-sx1-mmc.c b/arch/arm/mach-omap1/board-sx1-mmc.c index 66a4d7d5255d..58a46e4e45c3 100644 --- a/arch/arm/mach-omap1/board-sx1-mmc.c +++ b/arch/arm/mach-omap1/board-sx1-mmc.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <mach/hardware.h> | 17 | #include <mach/hardware.h> |
18 | #include <mach/mmc.h> | 18 | #include <mach/mmc.h> |
19 | #include <mach/gpio.h> | 19 | #include <mach/gpio.h> |
20 | #include <mach/board-sx1.h> | ||
20 | 21 | ||
21 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 22 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) |
22 | 23 | ||
diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c index 28c76a1e71c0..ab277d42f302 100644 --- a/arch/arm/mach-omap1/board-sx1.c +++ b/arch/arm/mach-omap1/board-sx1.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <mach/board.h> | 41 | #include <mach/board.h> |
42 | #include <mach/common.h> | 42 | #include <mach/common.h> |
43 | #include <mach/keypad.h> | 43 | #include <mach/keypad.h> |
44 | #include <mach/board-sx1.h> | ||
44 | 45 | ||
45 | /* Write to I2C device */ | 46 | /* Write to I2C device */ |
46 | int sx1_i2c_write_byte(u8 devaddr, u8 regoffset, u8 value) | 47 | int sx1_i2c_write_byte(u8 devaddr, u8 regoffset, u8 value) |