This commit is contained in:
Jeremy Soller 2020-01-12 20:19:20 -07:00
parent e9c308b789
commit 98467ac449
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
5 changed files with 20 additions and 26 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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);
}