Commit 0901f90f authored by Paul Walmsley's avatar Paul Walmsley Committed by Tony Lindgren

OMAP3 PM: enable hardware SAR for USBHOST, USBTLL modules

Enable hardware save-and-restore for the CORE and USBHOST powerdomains
during PM layer initialization.  On OMAP3, this only affects the
USBTLL and USBHOST modules.

There is probably a sleep and wakeup latency penalty with these
enabled.  No one seems to have quantified it yet.  If the added
latency is measurable, an alternate approach would be to only enable
hardware save-and-restore if there are USB devices attached.
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 2471a46e
...@@ -357,6 +357,10 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm) ...@@ -357,6 +357,10 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm)
pwrst->pwrdm = pwrdm; pwrst->pwrdm = pwrdm;
pwrst->next_state = PWRDM_POWER_RET; pwrst->next_state = PWRDM_POWER_RET;
list_add(&pwrst->node, &pwrst_list); list_add(&pwrst->node, &pwrst_list);
if (pwrdm_has_hdwr_sar(pwrdm))
pwrdm_enable_hdwr_sar(pwrdm);
return set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); return set_pwrdm_state(pwrst->pwrdm, pwrst->next_state);
} }
......
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