diff --git a/src/board/system76/galp3-c/peci.c b/src/board/system76/galp3-c/peci.c index 6d075ae..7726b6d 100644 --- a/src/board/system76/galp3-c/peci.c +++ b/src/board/system76/galp3-c/peci.c @@ -65,7 +65,6 @@ static void peci_config(void) { } } - // PECI information can be found here: https://www.intel.com/content/dam/www/public/us/en/documents/design-guides/core-i7-lga-2011-guide.pdf void peci_event(void) { // Wait for completion @@ -73,7 +72,6 @@ void peci_event(void) { // Clear status HOSTAR = HOSTAR; - // Enable PECI, clearing data fifo's HOCTLR = (1 << 5) | (1 << 3); // Set address to default diff --git a/src/board/system76/lemp9/include/board/peci.h b/src/board/system76/lemp9/include/board/peci.h index a71c04b..c447300 100644 --- a/src/board/system76/lemp9/include/board/peci.h +++ b/src/board/system76/lemp9/include/board/peci.h @@ -9,6 +9,7 @@ extern uint8_t peci_duty; extern uint8_t peci_tcontrol; extern uint8_t peci_tjmax; +void peci_init(void); void peci_event(void); #endif // _BOARD_PECI_H diff --git a/src/board/system76/lemp9/peci.c b/src/board/system76/lemp9/peci.c index a0d08a4..9289fa3 100644 --- a/src/board/system76/lemp9/peci.c +++ b/src/board/system76/lemp9/peci.c @@ -76,7 +76,6 @@ static void peci_config(void) { } } - // PECI information can be found here: https://www.intel.com/content/dam/www/public/us/en/documents/design-guides/core-i7-lga-2011-guide.pdf void peci_event(void) { // Wait for completion @@ -84,7 +83,6 @@ void peci_event(void) { // Clear status HOSTAR = HOSTAR; - // Enable PECI, clearing data fifo's HOCTLR = (1 << 5) | (1 << 3); // Set address to default diff --git a/src/board/system76/lemp9/power.c b/src/board/system76/lemp9/power.c index fb6c2dd..9a9862a 100644 --- a/src/board/system76/lemp9/power.c +++ b/src/board/system76/lemp9/power.c @@ -9,25 +9,25 @@ extern uint8_t main_cycle; -static struct Gpio __code PCH_DPWROK_EC = GPIO(A, 7); -static struct Gpio __code PCH_PWROK_EC = GPIO(A, 6); -static struct Gpio __code LED_PWR = GPIO(D, 0); -static struct Gpio __code ALL_SYS_PWRGD = GPIO(C, 0); -static struct Gpio __code PM_PWROK = GPIO(C, 6); -static struct Gpio __code PWR_SW_N = GPIO(B, 3); -static struct Gpio __code BUF_PLT_RST_N = GPIO(D, 2); -static struct Gpio __code PWR_BTN_N = GPIO(D, 5); -static struct Gpio __code SUSWARN_N = GPIO(D, 7); -static struct Gpio __code EC_EN = GPIO(J, 6); -static struct Gpio __code VA_EC_EN = GPIO(J, 4); -static struct Gpio __code DD_ON = GPIO(E, 4); -static struct Gpio __code EC_RSMRST_N = GPIO(E, 5); -static struct Gpio __code AC_PRESENT = GPIO(E, 1); -static struct Gpio __code SUSC_N_PCH = GPIO(H, 1); -static struct Gpio __code VR_ON = GPIO(H, 4); -static struct Gpio __code SUSB_N_PCH = GPIO(H, 6); -static struct Gpio __code SLP_SUS_N = GPIO(J, 3); -static struct Gpio __code SUS_PWR_ACK = GPIO(J, 7); +extern struct Gpio __code PCH_DPWROK_EC; +extern struct Gpio __code PCH_PWROK_EC; +extern struct Gpio __code LED_PWR; +extern struct Gpio __code ALL_SYS_PWRGD; +extern struct Gpio __code PM_PWROK; +extern struct Gpio __code PWR_SW_N; +extern struct Gpio __code BUF_PLT_RST_N; +extern struct Gpio __code PWR_BTN_N; +extern struct Gpio __code SUSWARN_N; +extern struct Gpio __code EC_EN; +extern struct Gpio __code VA_EC_EN; +extern struct Gpio __code DD_ON; +extern struct Gpio __code EC_RSMRST_N; +extern struct Gpio __code AC_PRESENT; +extern struct Gpio __code SUSC_N_PCH; +extern struct Gpio __code VR_ON; +extern struct Gpio __code SUSB_N_PCH; +extern struct Gpio __code SLP_SUS_N; +extern struct Gpio __code SUS_PWR_ACK; // VccRTC stable (55%) to RTCRST# high #define tPCH01 delay_ms(9) diff --git a/src/board/system76/lemp9/smbus.c b/src/board/system76/lemp9/smbus.c index b9dafe2..c3df1cd 100644 --- a/src/board/system76/lemp9/smbus.c +++ b/src/board/system76/lemp9/smbus.c @@ -16,9 +16,6 @@ void smbus_init(void) { SMB45P3USL = 0xA1; SMB45P3USH = 0x01; - // Clock set to 50 KHz - // SCLKTSA = 1; - // Set up for i2c usage i2c_reset(true); }