From 72755c81e4ba264d86edca8b1820fe6fd4226a36 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 25 Jun 2020 11:34:41 -0600 Subject: [PATCH] Use BUF_PLT_RST_N to trigger setting power limits again --- src/board/system76/addw2/board.c | 2 +- src/board/system76/gaze15/board.c | 2 +- src/board/system76/oryp6/board.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/board/system76/addw2/board.c b/src/board/system76/addw2/board.c index b2661bf..051ab54 100644 --- a/src/board/system76/addw2/board.c +++ b/src/board/system76/addw2/board.c @@ -52,7 +52,7 @@ void board_event(void) { static bool last_power_limit_ac = true; // We don't use power_state because the latency needs to be low - if (gpio_get(&SUSB_N_PCH)) { + if (gpio_get(&BUF_PLT_RST_N)) { if (last_power_limit_ac != ac) { board_on_ac(ac); last_power_limit_ac = ac; diff --git a/src/board/system76/gaze15/board.c b/src/board/system76/gaze15/board.c index 9305502..320ce7b 100644 --- a/src/board/system76/gaze15/board.c +++ b/src/board/system76/gaze15/board.c @@ -53,7 +53,7 @@ void board_event(void) { static bool last_power_limit_ac = true; // We don't use power_state because the latency needs to be low - if (gpio_get(&SUSB_N_PCH)) { + if (gpio_get(&BUF_PLT_RST_N)) { if (last_power_limit_ac != ac) { board_on_ac(ac); last_power_limit_ac = ac; diff --git a/src/board/system76/oryp6/board.c b/src/board/system76/oryp6/board.c index 441d85b..8c19014 100644 --- a/src/board/system76/oryp6/board.c +++ b/src/board/system76/oryp6/board.c @@ -57,7 +57,7 @@ void board_event(void) { static bool last_power_limit_ac = true; // We don't use power_state because the latency needs to be low - if (gpio_get(&SUSB_N_PCH)) { + if (gpio_get(&BUF_PLT_RST_N)) { if (last_power_limit_ac != ac) { board_on_ac(ac); last_power_limit_ac = ac;