summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/pm.h
diff options
context:
space:
mode:
authorThara Gopinath <thara@ti.com>2010-12-10 20:45:16 +0300
committerKevin Hilman <khilman@deeprootsystems.com>2010-12-23 01:31:45 +0300
commit7bc3ed9ae632b9c94d3721d555d3452e24ca8ee3 (patch)
tree2781b54bdc5434225d0005f854ab28d99d81c0fc /arch/arm/mach-omap2/pm.h
parent1482d8be5525eccdec6286677d40af29da03a30c (diff)
downloadlinux-7bc3ed9ae632b9c94d3721d555d3452e24ca8ee3.tar.xz
OMAP4: Register voltage PMIC parameters with the voltage layer
TWL6030 is the power IC used along with OMAP4 in OMAP4 SDPs, blaze boards and panda boards. This patch registers the OMAP4 PMIC specific information with the voltage layer. This also involves implementing a different formula for voltage to vsel and vsel to voltage calculations from TWL4030. 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h
index c975a79691b7..1c1b0ab5b978 100644
--- a/arch/arm/mach-omap2/pm.h
+++ b/arch/arm/mach-omap2/pm.h
@@ -126,11 +126,16 @@ static inline void omap_enable_smartreflex_on_init(void) {}
#ifdef CONFIG_TWL4030_CORE
extern int omap3_twl_init(void);
+extern int omap4_twl_init(void);
#else
static inline int omap3_twl_init(void)
{
return -EINVAL;
}
+static inline int omap4_twl_init(void)
+{
+ return -EINVAL;
+}
#endif
#endif