lemp9: Remove duplicate setting of XLP_OUT
XLP_OUT is already set in power_event(). Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
parent
1fc832ca94
commit
92c8f8f3d1
@ -2,9 +2,6 @@
|
||||
|
||||
#include <board/board.h>
|
||||
#include <board/gpio.h>
|
||||
#include <board/power.h>
|
||||
|
||||
extern uint8_t main_cycle;
|
||||
|
||||
void board_init(void) {
|
||||
// Allow CPU to boot
|
||||
@ -25,13 +22,6 @@ void board_init(void) {
|
||||
gpio_set(&SWI_N, true);
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
if (main_cycle == 0) {
|
||||
if (power_state == POWER_STATE_S0 || power_state == POWER_STATE_S3 || power_state == POWER_STATE_DS3) {
|
||||
// System is on
|
||||
} else if (gpio_get(&ACIN_N)) {
|
||||
// Power off VDD3 if system should be off
|
||||
gpio_set(&XLP_OUT, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
void board_on_ac(bool ac) { /* Fix unused variable */ ac = ac; }
|
||||
|
||||
void board_event(void) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user