mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
common: add EC_RTC_ALARM_CLEAR to ec_commands.h
EC_RTC_ALARM_CLEAR should live in ec_commands.h so other EC clients such as the kernel can make use of it. Signed-off-by: Stephen Barber <smbarber@chromium.org> BRANCH=none BUG=chrome-os-partner:52219 TEST=kernel can clear existing alarm Change-Id: I88aefed7e6c37a5aa2e4306c078e90d671c410d0 Reviewed-on: https://chromium-review.googlesource.com/359352 Commit-Ready: Stephen Barber <smbarber@chromium.org> Tested-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
aae621d6c5
commit
77c17a2054
@@ -417,7 +417,6 @@ static char system_to_hex(uint8_t x)
|
||||
* stores wakeup time in seconds.
|
||||
* Set seconds = 0 to disable the alarm
|
||||
*/
|
||||
#define EC_RTC_ALARM_CLEAR 0
|
||||
void system_set_rtc_alarm(uint32_t seconds, uint32_t microseconds)
|
||||
{
|
||||
uint32_t cur_secs, alarm_secs;
|
||||
|
||||
@@ -2147,6 +2147,9 @@ struct ec_response_rtc {
|
||||
#define EC_CMD_RTC_SET_VALUE 0x46
|
||||
#define EC_CMD_RTC_SET_ALARM 0x47
|
||||
|
||||
/* Pass as time param to SET_ALARM to clear the current alarm */
|
||||
#define EC_RTC_ALARM_CLEAR 0
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Port80 log access */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user