core/riscv-rv32i: add default __idle()
Adds default __idle() implementation.
BRANCH=none
TEST=1. make BOARD=asurada
2. flash_ec --board=asurada --image build/asurada/ec.bin
3. (EC console)> version
@@ -74,9 +74,13 @@ void __idle(void)
cprints(CC_TASK, "idle task started");
while (1) {
+#if defined(CHIP_FAMILY_IT83XX)
/* doze mode */
IT83XX_ECPM_PLLCTRL = EC_PLL_DOZE;
clock_cpu_standby();
+#else
+ asm("wfi");
+#endif
}
}
#endif /* !CONFIG_LOW_POWER_IDLE */
