Commit 4a3b9a7d authored by Kevin Hilman's avatar Kevin Hilman

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: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 72e27c14
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment