summaryrefslogtreecommitdiff
path: root/chip/it83xx/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/it83xx/clock.c')
-rw-r--r--chip/it83xx/clock.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/chip/it83xx/clock.c b/chip/it83xx/clock.c
index 60549c81fe..ab542aae6e 100644
--- a/chip/it83xx/clock.c
+++ b/chip/it83xx/clock.c
@@ -310,7 +310,12 @@ static void clock_htimer_enable(void)
uint32_t c;
/* change event timer clock source to 32.768 KHz */
+#if 0
c = TIMER_CNT_8M_32P768K(IT83XX_ETWD_ETXCNTOR(EVENT_EXT_TIMER));
+#else
+ /* TODO(crosbug.com/p/55044) */
+ c = TIMER_CNT_8M_32P768K(ext_observation_reg_read(EVENT_EXT_TIMER));
+#endif
clock_event_timer_clock_change(EXT_PSR_32P768K_HZ, c);
}
@@ -323,7 +328,12 @@ static int clock_allow_low_power_idle(void)
et_ctrl_regs[EVENT_EXT_TIMER].mask)
return 0;
+#if 0
if (EVENT_TIMER_COUNT_TO_US(IT83XX_ETWD_ETXCNTOR(EVENT_EXT_TIMER)) <
+#else
+ /* TODO(crosbug.com/p/55044) */
+ if (EVENT_TIMER_COUNT_TO_US(ext_observation_reg_read(EVENT_EXT_TIMER)) <
+#endif
SLEEP_SET_HTIMER_DELAY_USEC)
return 0;