From: Kevin Hilman Date: Wed, 26 Nov 2008 05:46:55 +0000 (-0800) Subject: OMAP3: PM: Ensure modem is reset during PRCM init X-Git-Tag: v2.6.28-omap1~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4a3b9a7d4cedf2d3d4522fec494b9eb60c971886;p=linux-2.6-omap-h63xx.git OMAP3: PM: Ensure modem is reset during PRCM init Rogue bootloaders may enable the modem and thus keep the D2D power- and clock-domains from going into retention. Reset modem on boot to be sure it is in known state. Signed-off-by: Kevin Hilman --- diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 8b4b8623f8d..1d54e96f16d 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -424,6 +424,12 @@ static void __init omap3_iva_idle(void) static void __init prcm_setup_regs(void) { + /* reset modem */ + prm_write_mod_reg(OMAP3430_RM_RSTCTRL_CORE_MODEM_SW_RSTPWRON | + OMAP3430_RM_RSTCTRL_CORE_MODEM_SW_RST, + CORE_MOD, RM_RSTCTRL); + prm_write_mod_reg(0, CORE_MOD, RM_RSTCTRL); + /* XXX Reset all wkdeps. This should be done when initializing * powerdomains */ prm_write_mod_reg(0, OMAP3430_IVA2_MOD, PM_WKDEP);