diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/homestar/board.c | 1 | ||||
-rw-r--r-- | board/lazor/switchcap.c | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/board/homestar/board.c b/board/homestar/board.c index ce13ee1076..657b547c5f 100644 --- a/board/homestar/board.c +++ b/board/homestar/board.c @@ -439,6 +439,7 @@ DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_chipset_resume, HOOK_PRIO_DEFAULT); void board_set_switchcap_power(int enable) { gpio_set_level(GPIO_SWITCHCAP_ON_L, !enable); + ln9310_software_enable(enable); } int board_is_switchcap_enabled(void) diff --git a/board/lazor/switchcap.c b/board/lazor/switchcap.c index 3d5255791c..6cb5106efb 100644 --- a/board/lazor/switchcap.c +++ b/board/lazor/switchcap.c @@ -105,10 +105,12 @@ DECLARE_HOOK(HOOK_INIT, switchcap_init, HOOK_PRIO_DEFAULT); void board_set_switchcap_power(int enable) { - if (board_has_ln9310()) + if (board_has_ln9310()) { gpio_set_level(GPIO_SWITCHCAP_ON_L, !enable); - else + ln9310_software_enable(enable); + } else { gpio_set_level(GPIO_SWITCHCAP_ON, enable); + } } int board_is_switchcap_enabled(void) |