mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-04 18:30:18 +00:00
IOC mediator: add RTC feature
This patch implements RTC feature that UOS can set RTC wakeup timer to IOC firmware with a specific time before enter S3/S5. IOC mediator also needs to indicate RTC wakeup reason to UOS after exit S3/S5. Tracked-On: #1213 Signed-off-by: Yuan Liu <yuan1.liu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -181,6 +181,7 @@ enum cbc_system_control_command {
|
||||
CBC_SC_HB = 2, /* Heartbeat */
|
||||
CBC_SC_BOOTSEL = 3, /* Boot selector */
|
||||
CBC_SC_SPRS_HB = 4, /* Suppress heartbeat check */
|
||||
CBC_SC_RTC = 5, /* Set RTC wakeup timer */
|
||||
CBC_SC_MAX
|
||||
};
|
||||
|
||||
@@ -220,6 +221,27 @@ enum cbc_sus_stat_action {
|
||||
CBC_SS_MAX
|
||||
};
|
||||
|
||||
/*
|
||||
* CBC system control - RTC: command type.
|
||||
* RTC Message
|
||||
* +------------------+-------------+-------------+-------------+
|
||||
* | SystemControlCMD | Timer value | Timer value | Granularity |
|
||||
* | SVC-Header: 5 | Bits 0...7 | Bits 8...15 | 0 - seconds |
|
||||
* | | | | 1 - minutes |
|
||||
* | | | | 2 - hours |
|
||||
* | | | | 3 - days |
|
||||
* | | | | 4 - week |
|
||||
* | 8b | 8b | 8b | 8b |
|
||||
* +------------------+-------------+-------------+-------------+
|
||||
*/
|
||||
enum cbc_rtc_timer_unit {
|
||||
CBC_RTC_TIMER_U_SEC,
|
||||
CBC_RTC_TIMER_U_MIN,
|
||||
CBC_RTC_TIMER_U_HOUR,
|
||||
CBC_RTC_TIMER_U_DAY,
|
||||
CBC_RTC_TIMER_U_WEEK,
|
||||
};
|
||||
|
||||
/*
|
||||
* CBC rx signal identity definition.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user