Simon Glass | dd18e5d | 2015-04-20 12:37:24 -0600 | [diff] [blame] | 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 |