Mike Rapoport | 96974a2 | 2011-04-25 01:09:05 +0300 | [diff] [blame] | 1 | #ifndef __OMAP_COMMON_BOARD_DEVICES__ |
| 2 | #define __OMAP_COMMON_BOARD_DEVICES__ |
| 3 | |
Mike Rapoport | fbd8071 | 2011-04-25 01:09:06 +0300 | [diff] [blame] | 4 | struct twl4030_platform_data; |
Mike Rapoport | 9a3f39f | 2011-04-25 01:09:07 +0300 | [diff] [blame^] | 5 | struct mtd_partition; |
Mike Rapoport | fbd8071 | 2011-04-25 01:09:06 +0300 | [diff] [blame] | 6 | |
| 7 | void omap_pmic_init(int bus, u32 clkrate, const char *pmic_type, int pmic_irq, |
| 8 | struct twl4030_platform_data *pmic_data); |
| 9 | |
| 10 | static inline void omap2_pmic_init(const char *pmic_type, |
| 11 | struct twl4030_platform_data *pmic_data) |
| 12 | { |
| 13 | omap_pmic_init(2, 2600, pmic_type, INT_24XX_SYS_NIRQ, pmic_data); |
| 14 | } |
| 15 | |
| 16 | static inline void omap3_pmic_init(const char *pmic_type, |
| 17 | struct twl4030_platform_data *pmic_data) |
| 18 | { |
| 19 | omap_pmic_init(1, 2600, pmic_type, INT_34XX_SYS_NIRQ, pmic_data); |
| 20 | } |
| 21 | |
| 22 | static inline void omap4_pmic_init(const char *pmic_type, |
| 23 | struct twl4030_platform_data *pmic_data) |
| 24 | { |
| 25 | /* Phoenix Audio IC needs I2C1 to start with 400 KHz or less */ |
| 26 | omap_pmic_init(1, 400, pmic_type, OMAP44XX_IRQ_SYS_1N, pmic_data); |
| 27 | } |
| 28 | |
Mike Rapoport | 96974a2 | 2011-04-25 01:09:05 +0300 | [diff] [blame] | 29 | struct ads7846_platform_data; |
| 30 | |
| 31 | void omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce, |
| 32 | struct ads7846_platform_data *board_pdata); |
Mike Rapoport | 9a3f39f | 2011-04-25 01:09:07 +0300 | [diff] [blame^] | 33 | void omap_nand_flash_init(int opts, struct mtd_partition *parts, int n_parts); |
Mike Rapoport | 96974a2 | 2011-04-25 01:09:05 +0300 | [diff] [blame] | 34 | |
| 35 | #endif /* __OMAP_COMMON_BOARD_DEVICES__ */ |