Open naiyining opened 5 years ago
how to enable RTC Alarm?
I can see the source EnableS5WakeOnRtc() in edk2-platforms\Vlv2TbltDevicePkg\PlatformSmm\Platform.c, but I don't known how to config.
Can anyone help me?
----BIOS\edk2-platforms\Vlv2TbltDevicePkg\PlatformSmm\Platform.c // // Set Hour // IoWrite8(PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_HOUR_ALARM); for(i = 0 ; i < 0xffff ; i++){ IoWrite8(PCAT_RTC_DATA_REGISTER, mWakeupHour); SmmStall(1); if(IoRead8(PCAT_RTC_DATA_REGISTER) == mWakeupHour){ break; } }
if (!mSystemConfiguration.WakeOnRtcS5) { return; } mWakeupDay = HexToBcd((UINT8)mSystemConfiguration.RTCWakeupDate); mWakeupHour = HexToBcd((UINT8)mSystemConfiguration.RTCWakeupTimeHour); mWakeupMinute = HexToBcd((UINT8)mSystemConfiguration.RTCWakeupTimeMinute); mWakeupSecond = HexToBcd((UINT8)mSystemConfiguration.RTCWakeupTimeSecond);
------I can find this code,but how to use them? ------can any one give me some advise?
will MinnowBoard BIOS support Fix time power up? or how to set it?