[ADL] Expose Timed GPIO to OS

This patch assigns Timed GPIO Cfg Data to the NVS variables
in order for the OS to load this driver.

Signed-off-by: Sindhura Grandhi <sindhura.grandhi@intel.com>
This commit is contained in:
Sindhura Grandhi 2022-04-05 13:40:28 -07:00 committed by Guo Dong
parent 4a2acfd592
commit eb23e4c4ed
1 changed files with 6 additions and 0 deletions

View File

@ -1195,5 +1195,11 @@ PlatformUpdateAcpiGnvs (
PlatformNvs->LowPowerS0Idle = PlatformData->PlatformFeatures.TccLowPowerS0Idle;
}
}
// Expose Timed GPIO to OS through Nvs variables
if (SiCfgData != NULL) {
PchNvs->EnableTimedGpio0 = (UINT8)SiCfgData->EnableTimedGpio0;
PchNvs->EnableTimedGpio1 = (UINT8)SiCfgData->EnableTimedGpio1;
}
}