diff options
author | Thara Gopinath <thara@ti.com> | 2010-12-10 20:21:05 +0300 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-12-23 01:31:41 +0300 |
commit | fbc319f67660ede23cc22f3af5df559693f8062e (patch) | |
tree | 52c817cbc5110d9018d7e6fa5a8d34cd840655c5 /arch/arm/mach-omap2/pm.h | |
parent | fa765823a3cbb9ce1b13ce2832109a50d899c471 (diff) | |
download | linux-fbc319f67660ede23cc22f3af5df559693f8062e.tar.xz |
OMAP3: PM: Register TWL4030 pmic info with the voltage driver.
This patch registers the TWL4030 PMIC specific informtion
with the voltage driver. Failing this patch the voltage driver
is unware of the formula to use for vsel to voltage and vice versa
conversion and lot of other PMIC dependent parameters.
This file is based on the arch/arm/plat-omap opp_twl_tpl.c file
by Paul Walmsley. The original file is replaced by this file.
Signed-off-by: Thara Gopinath <thara@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm.h')
-rw-r--r-- | arch/arm/mach-omap2/pm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index cc9f18b5c61d..c975a79691b7 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h @@ -124,4 +124,13 @@ static inline int omap_devinit_smartreflex(void) static inline void omap_enable_smartreflex_on_init(void) {} #endif +#ifdef CONFIG_TWL4030_CORE +extern int omap3_twl_init(void); +#else +static inline int omap3_twl_init(void) +{ + return -EINVAL; +} +#endif + #endif |