From 4aeb3669a0c70fa7cc255ffcbc878ae9678170f9 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 28 Feb 2023 12:25:11 -0700 Subject: [PATCH] Fix formatting --- src/board/system76/common/peci.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/board/system76/common/peci.c b/src/board/system76/common/peci.c index af3a9fd..b74aa06 100644 --- a/src/board/system76/common/peci.c +++ b/src/board/system76/common/peci.c @@ -73,11 +73,13 @@ bool peci_available(void) { update_power_state(); // Power state must be S0 for PECI to be useful - if (power_state != POWER_STATE_S0) return false; + if (power_state != POWER_STATE_S0) + return false; // If VW_PLTRST_N virtual wire is not VWS_HIGH, PECI is not available // This is because the CPU has not yet exited reset - if (vw_get(&VW_PLTRST_N) != VWS_HIGH) return false; + if (vw_get(&VW_PLTRST_N) != VWS_HIGH) + return false; // If VW_HOST_C10 virtual wire is VWS_HIGH, PECI will wake the CPU //TODO: wake CPU every 8 seconds following Intel recommendation? @@ -266,7 +268,8 @@ bool peci_available(void) { update_power_state(); // Power state must be S0 for PECI to be useful - if (power_state != POWER_STATE_S0) return false; + if (power_state != POWER_STATE_S0) + return false; // PECI is available if PLTRST# is high return gpio_get(&BUF_PLT_RST_N);