Use PME virtual wire for suspend/resume
This commit is contained in:
committed by
Jeremy Soller
parent
90057df94f
commit
2720bb9037
@@ -71,8 +71,17 @@ bool pmc_sci(struct Pmc * pmc, uint8_t sci) {
|
|||||||
|
|
||||||
void pmc_swi(void) {
|
void pmc_swi(void) {
|
||||||
#if EC_ESPI
|
#if EC_ESPI
|
||||||
// Use SCI interrupt
|
// Start PME interrupt
|
||||||
pmc_sci_interrupt();
|
vw_set(&VW_PME_N, VWS_LOW);
|
||||||
|
|
||||||
|
// Delay T_HOLD (value assumed)
|
||||||
|
delay_us(65);
|
||||||
|
|
||||||
|
// Stop PME interrupt
|
||||||
|
vw_set(&VW_PME_N, VWS_HIGH);
|
||||||
|
|
||||||
|
// Delay T_HOLD (value assumed)
|
||||||
|
delay_us(65);
|
||||||
#else // EC_ESPI
|
#else // EC_ESPI
|
||||||
// Start SWI interrupt
|
// Start SWI interrupt
|
||||||
gpio_set(&SWI_N, false);
|
gpio_set(&SWI_N, false);
|
||||||
|
Reference in New Issue
Block a user