MinnowBoard-org / bugs-and-help

Ask QUESTIONS here. MinnowBoard.org issue and get help submission. See README for use.
14 stars 2 forks source link

Is BIOS support Fix time power up #145

Open naiyining opened 5 years ago

naiyining commented 5 years ago

will MinnowBoard BIOS support Fix time power up? or how to set it?

naiyining commented 5 years ago

how to enable RTC Alarm?

naiyining commented 5 years ago

I can see the source EnableS5WakeOnRtc() in edk2-platforms\Vlv2TbltDevicePkg\PlatformSmm\Platform.c, but I don't known how to config.

naiyining commented 4 years ago

Can anyone help me?

naiyining commented 4 years ago

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