summaryrefslogtreecommitdiff
path: root/core/nds32/task.c
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2016-05-13 11:07:30 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-05-18 19:44:09 -0700
commitf817140c3e38d00d6d967e56ca366e05e64dfdfc (patch)
tree5d3d08a97e3c8238cd79174666c5e6e62a19a89f /core/nds32/task.c
parent6e0c60d11f704302f00f7b58a0a94695bb5dd85a (diff)
downloadchrome-ec-f817140c3e38d00d6d967e56ca366e05e64dfdfc.tar.gz
chip: it83xx: Optimize interrupt usage of LPC access
LPC access interrupt only enabled when EC entering deep doze mode. This will reduce interrupt of LPC access. Also, this interrupt is always enabled for LPC platform to support "CONFIG_LOW_POWER_S0". Signed-off-by: Dino Li <dino.li@ite.com.tw> BRANCH=none BUG=none TEST=Tested ectool command 'version' x 10000. Change-Id: I9053c4018b38a8a852c3c6254e1fcde625f3fa3a Reviewed-on: https://chromium-review.googlesource.com/336112 Commit-Ready: Dino Li <dino0303@gmail.com> Tested-by: Dino Li <dino0303@gmail.com> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'core/nds32/task.c')
-rw-r--r--core/nds32/task.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/nds32/task.c b/core/nds32/task.c
index 1c1053994f..f983962cff 100644
--- a/core/nds32/task.c
+++ b/core/nds32/task.c
@@ -76,11 +76,6 @@ void __idle(void)
cprints(CC_TASK, "idle task started");
while (1) {
-#if defined(CHIP_FAMILY_IT83XX) && defined(CONFIG_LPC) \
- && defined(CONFIG_IT83XX_LPC_ACCESS_INT)
- task_enable_irq(IT83XX_IRQ_WKINTAD);
-#endif
-
#ifdef CHIP_FAMILY_IT83XX
/* doze mode */
IT83XX_ECPM_PLLCTRL = EC_PLL_DOZE;
@@ -91,11 +86,6 @@ void __idle(void)
* (sleep / deep sleep, depending on chip config).
*/
asm("standby wake_grant");
-
-#if defined(CHIP_FAMILY_IT83XX) && defined(CONFIG_LPC) \
- && defined(CONFIG_IT83XX_LPC_ACCESS_INT)
- task_disable_irq(IT83XX_IRQ_WKINTAD);
-#endif
}
}
#endif /* !CONFIG_LOW_POWER_IDLE */