summaryrefslogtreecommitdiff
path: root/src/include/pc80
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2012-06-23 13:22:25 -0700
committerPatrick Georgi <patrick@georgi-clan.de>2012-07-24 11:42:34 +0200
commitc8c836f58e9bbfbddda800fd98c2de42642af1a5 (patch)
treea0a9f0319c96e1ed616498b21f80b6bdeb5233d0 /src/include/pc80
parent542e9628aed98aa08674b47a69647c402fa0833e (diff)
downloadcoreboot-c8c836f58e9bbfbddda800fd98c2de42642af1a5.tar.xz
RTC: Add defines for standard clock offsets
ELOG reads from RTC to build timestamp structure, the resulting timestamp is decoded when printing events. Change-Id: If26552074f18de5095b967b875a0ac1d815a5b31 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/1302 Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/include/pc80')
-rw-r--r--src/include/pc80/mc146818rtc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h
index a1f06e7021..9f18ba49e8 100644
--- a/src/include/pc80/mc146818rtc.h
+++ b/src/include/pc80/mc146818rtc.h
@@ -76,6 +76,18 @@
# define RTC_VRT 0x80 /* valid RAM and time */
/**********************************************************************/
+/* Date and Time in RTC CMOS */
+#define RTC_CLK_SECOND 0
+#define RTC_CLK_SECOND_ALARM 1
+#define RTC_CLK_MINUTE 2
+#define RTC_CLK_MINUTE_ALARM 3
+#define RTC_CLK_HOUR 4
+#define RTC_CLK_HOUR_ALARM 5
+#define RTC_CLK_DAYOFWEEK 6
+#define RTC_CLK_DAYOFMONTH 7
+#define RTC_CLK_MONTH 8
+#define RTC_CLK_YEAR 9
+
/* On PCs, the checksum is built only over bytes 16..45 */
#define PC_CKS_RANGE_START 16
#define PC_CKS_RANGE_END 45