diff options
author | Mike Rapoport <mike@compulab.co.il> | 2011-04-24 18:09:07 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-05-03 05:53:37 -0400 |
commit | 9a3f39ff36e11ea6b6c8b5f90337a864cb7e81f6 (patch) | |
tree | bdce8353ab8670fa603d5ace590c2a467df3537d /arch/arm/mach-omap2/common-board-devices.h | |
parent | fbd8071c188e3053fb318d78214e54d4615d93f2 (diff) |
omap: move detection of NAND CS to common-board-devices
and reduce amount of copy/paste
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
CC: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/common-board-devices.h')
-rw-r--r-- | arch/arm/mach-omap2/common-board-devices.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/common-board-devices.h b/arch/arm/mach-omap2/common-board-devices.h index 0ec3e07239fc..eb80b3b0ef47 100644 --- a/arch/arm/mach-omap2/common-board-devices.h +++ b/arch/arm/mach-omap2/common-board-devices.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define __OMAP_COMMON_BOARD_DEVICES__ | 2 | #define __OMAP_COMMON_BOARD_DEVICES__ |
3 | 3 | ||
4 | struct twl4030_platform_data; | 4 | struct twl4030_platform_data; |
5 | struct mtd_partition; | ||
5 | 6 | ||
6 | void omap_pmic_init(int bus, u32 clkrate, const char *pmic_type, int pmic_irq, | 7 | void omap_pmic_init(int bus, u32 clkrate, const char *pmic_type, int pmic_irq, |
7 | struct twl4030_platform_data *pmic_data); | 8 | struct twl4030_platform_data *pmic_data); |
@@ -25,18 +26,10 @@ static inline void omap4_pmic_init(const char *pmic_type, | |||
25 | omap_pmic_init(1, 400, pmic_type, OMAP44XX_IRQ_SYS_1N, pmic_data); | 26 | omap_pmic_init(1, 400, pmic_type, OMAP44XX_IRQ_SYS_1N, pmic_data); |
26 | } | 27 | } |
27 | 28 | ||
28 | #if defined(CONFIG_TOUCHSCREEN_ADS7846) || \ | ||
29 | defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) | ||
30 | struct ads7846_platform_data; | 29 | struct ads7846_platform_data; |
31 | 30 | ||
32 | void omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce, | 31 | void omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce, |
33 | struct ads7846_platform_data *board_pdata); | 32 | struct ads7846_platform_data *board_pdata); |
34 | #else | 33 | void omap_nand_flash_init(int opts, struct mtd_partition *parts, int n_parts); |
35 | static inline void omap_ads7846_init(int bus_num, | ||
36 | int gpio_pendown, int gpio_debounce, | ||
37 | struct ads7846_platform_data *board_data) | ||
38 | { | ||
39 | } | ||
40 | #endif | ||
41 | 34 | ||
42 | #endif /* __OMAP_COMMON_BOARD_DEVICES__ */ | 35 | #endif /* __OMAP_COMMON_BOARD_DEVICES__ */ |