summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephen Barber <smbarber@chromium.org>2016-07-08 17:52:41 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-07-09 01:41:03 -0700
commit77c17a20543f8648cf9ddba25f2d4d66a1bbd393 (patch)
treece7c1e4cbf048bfdd875c8593b3c2ad503e1c852 /include
parentaae621d6c52467bb814b12d73a1851463d9b4a58 (diff)
downloadchrome-ec-77c17a20543f8648cf9ddba25f2d4d66a1bbd393.tar.gz
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>
Diffstat (limited to 'include')
-rw-r--r--include/ec_commands.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 18f5f839f7..c69440fb06 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -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 */