diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-06-04 01:16:41 -0400 |
---|---|---|
committer | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-07-04 11:43:27 -0400 |
commit | a53b8e3b995f8b7c8a8c4ef5aa367958e46139b3 (patch) | |
tree | b6fea956eb93a06aa4b7d66338e27717e140b9d5 /arch/arm/mach-omap2/twl-common.h | |
parent | 48cb1258e8b0f8c81cfb699b42326c5b2147b3f8 (diff) |
OMAP: New twl-common for common TWL configuration
Introduce a new file, which will be used to configure
common pmic (TWL) devices, regulators, and TWL audio.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/twl-common.h')
-rw-r--r-- | arch/arm/mach-omap2/twl-common.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/twl-common.h b/arch/arm/mach-omap2/twl-common.h new file mode 100644 index 000000000000..e9fe2ab4944a --- /dev/null +++ b/arch/arm/mach-omap2/twl-common.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef __OMAP_PMIC_COMMON__ | ||
2 | #define __OMAP_PMIC_COMMON__ | ||
3 | |||
4 | struct twl4030_platform_data; | ||
5 | |||
6 | void omap_pmic_init(int bus, u32 clkrate, const char *pmic_type, int pmic_irq, | ||
7 | struct twl4030_platform_data *pmic_data); | ||
8 | |||
9 | static inline void omap2_pmic_init(const char *pmic_type, | ||
10 | struct twl4030_platform_data *pmic_data) | ||
11 | { | ||
12 | omap_pmic_init(2, 2600, pmic_type, INT_24XX_SYS_NIRQ, pmic_data); | ||
13 | } | ||
14 | |||
15 | static inline void omap3_pmic_init(const char *pmic_type, | ||
16 | struct twl4030_platform_data *pmic_data) | ||
17 | { | ||
18 | omap_pmic_init(1, 2600, pmic_type, INT_34XX_SYS_NIRQ, pmic_data); | ||
19 | } | ||
20 | |||
21 | static inline void omap4_pmic_init(const char *pmic_type, | ||
22 | struct twl4030_platform_data *pmic_data) | ||
23 | { | ||
24 | /* Phoenix Audio IC needs I2C1 to start with 400 KHz or less */ | ||
25 | omap_pmic_init(1, 400, pmic_type, OMAP44XX_IRQ_SYS_1N, pmic_data); | ||
26 | } | ||
27 | |||
28 | #endif /* __OMAP_PMIC_COMMON__ */ | ||