Remove unnecessary code from espi_event
This commit is contained in:
@ -109,29 +109,12 @@ void espi_event(void) {
|
||||
DEBUG("ESGCTRL0 %X\n", value);
|
||||
|
||||
if (value & BIT(1)) {
|
||||
DEBUG("VW EN\n");
|
||||
// Set SUS_ACK# low
|
||||
VW_SET_DEBUG(VW_SUS_ACK_N, VWS_LOW);
|
||||
}
|
||||
if (value & BIT(2)) {
|
||||
DEBUG("OOB EN\n");
|
||||
VW_SET_DEBUG(VW_OOB_RST_ACK, VWS_LOW);
|
||||
}
|
||||
if (value & BIT(3)) {
|
||||
DEBUG("FLASH EN\n");
|
||||
// Set boot load status and boot load done high
|
||||
// Set boot load status and boot load done high, once VWs can be set
|
||||
VW_SET_DEBUG(VW_BOOT_LOAD_STATUS, VWS_HIGH);
|
||||
VW_SET_DEBUG(VW_BOOT_LOAD_DONE, VWS_HIGH);
|
||||
}
|
||||
}
|
||||
|
||||
// Detect PUT_PC
|
||||
value = ESPCTRL0;
|
||||
if (value & BIT(7)) {
|
||||
ESPCTRL0 = BIT(7);
|
||||
DEBUG("ESPCTRL0 %X\n", value);
|
||||
}
|
||||
|
||||
// Detect updated virtual wires
|
||||
value = VWCTRL1;
|
||||
if (value) {
|
||||
@ -187,10 +170,4 @@ void espi_event(void) {
|
||||
DEBUG("VWIDX47 %X\n", VWIDX47);
|
||||
}
|
||||
}
|
||||
|
||||
// Detect when frequency changes
|
||||
DEBUG_CHANGED(ESGCTRL2);
|
||||
|
||||
// Detect when I/O mode changes
|
||||
DEBUG_CHANGED(ESGCTRL3);
|
||||
}
|
||||
|
Reference in New Issue
Block a user