Cherry: move isl9238c_hibernate to board_hibernate
move isl9238c_hibernate from board_hibernate_late to board_hibernate.
BRANCH=cherry
TEST=none
@@ -91,13 +91,17 @@ __override void board_hibernate_late(void)
* Don't care for devices with Z-state.
*/
gpio_set_level(GPIO_EN_PP5000_A, 0);
- isl9238c_hibernate(CHARGER_SOLO);
gpio_set_level(GPIO_EN_SLP_Z, 1);
/* should not reach here */
__builtin_unreachable();
}
+void board_hibernate(void)
+{
+ isl9238c_hibernate(CHARGER_SOLO);
+}
+
static void board_tcpc_init(void)
{
gpio_enable_interrupt(GPIO_USB_C0_PPC_INT_ODL);
