From 3238fb156cf77b537b2df8d897fe62a7feab4939 Mon Sep 17 00:00:00 2001 From: ext Peter 'p2' De Schrijver Date: Wed, 6 Aug 2008 11:41:08 +0300 Subject: [PATCH] Add early init for voltage controller configuration and off mode polarity. Signed-off-by: Peter 'p2' De Schrijver Signed-off-by: Kalle Jokiniemi Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/pm34xx.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index a6cfc464e07..fc72c11e582 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -484,3 +484,15 @@ static void __init configure_vc(void) #endif } + +static int __init omap3_pm_early_init(void) +{ + prm_clear_mod_reg_bits(OMAP3430_OFFMODE_POL, OMAP3430_GR_MOD, + OMAP3_PRM_POLCTRL_OFFSET); + + configure_vc(); + + return 0; +} + +arch_initcall(omap3_pm_early_init); -- 2.41.1