xref: /openbmc/u-boot/arch/sandbox/include/asm/rtc.h (revision 6e87ae1c)
1 /*
2  * Simulate an I2C real time clock
3  *
4  * Copyright (c) 2015 Google, Inc
5  * Written by Simon Glass <sjg@chromium.org>
6  *
7  * SPDX-License-Identifier:	GPL-2.0+
8  */
9 
10 #ifndef __asm_rtc_h
11 #define __asm_rtc_h
12 
13 /* Register numbers in the sandbox RTC */
14 enum {
15 	REG_SEC		= 5,
16 	REG_MIN,
17 	REG_HOUR,
18 	REG_MDAY,
19 	REG_MON,
20 	REG_YEAR,
21 	REG_WDAY,
22 
23 	REG_RESET	= 0x20,
24 
25 	REG_COUNT	= 0x80,
26 };
27 
28 #endif
29