Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[pandora-kernel.git] / arch / arm / mach-omap2 / common-board-devices.h
1 #ifndef __OMAP_COMMON_BOARD_DEVICES__
2 #define __OMAP_COMMON_BOARD_DEVICES__
3
4 #define NAND_BLOCK_SIZE SZ_128K
5
6 struct twl4030_platform_data;
7 struct mtd_partition;
8
9 void omap_pmic_init(int bus, u32 clkrate, const char *pmic_type, int pmic_irq,
10                     struct twl4030_platform_data *pmic_data);
11
12 static inline void omap2_pmic_init(const char *pmic_type,
13                                    struct twl4030_platform_data *pmic_data)
14 {
15         omap_pmic_init(2, 2600, pmic_type, INT_24XX_SYS_NIRQ, pmic_data);
16 }
17
18 static inline void omap3_pmic_init(const char *pmic_type,
19                                    struct twl4030_platform_data *pmic_data)
20 {
21         omap_pmic_init(1, 2600, pmic_type, INT_34XX_SYS_NIRQ, pmic_data);
22 }
23
24 static inline void omap4_pmic_init(const char *pmic_type,
25                                    struct twl4030_platform_data *pmic_data)
26 {
27         /* Phoenix Audio IC needs I2C1 to start with 400 KHz or less */
28         omap_pmic_init(1, 400, pmic_type, OMAP44XX_IRQ_SYS_1N, pmic_data);
29 }
30
31 struct ads7846_platform_data;
32
33 void omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce,
34                        struct ads7846_platform_data *board_pdata);
35 void omap_nand_flash_init(int opts, struct mtd_partition *parts, int n_parts);
36
37 #endif /* __OMAP_COMMON_BOARD_DEVICES__ */