Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Glass | c404aa6 | 2015-04-20 12:37:24 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Simulate an I2C real time clock |
| 4 | * |
| 5 | * Copyright (c) 2015 Google, Inc |
| 6 | * Written by Simon Glass <sjg@chromium.org> |
Simon Glass | c404aa6 | 2015-04-20 12:37:24 -0600 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __asm_rtc_h |
| 10 | #define __asm_rtc_h |
| 11 | |
| 12 | /* Register numbers in the sandbox RTC */ |
| 13 | enum { |
| 14 | REG_SEC = 5, |
| 15 | REG_MIN, |
| 16 | REG_HOUR, |
| 17 | REG_MDAY, |
| 18 | REG_MON, |
| 19 | REG_YEAR, |
| 20 | REG_WDAY, |
| 21 | |
| 22 | REG_RESET = 0x20, |
| 23 | |
Rasmus Villemoes | 034b93b | 2020-07-06 22:01:18 +0200 | [diff] [blame] | 24 | REG_AUX0 = 0x30, |
| 25 | REG_AUX1, |
| 26 | REG_AUX2, |
| 27 | REG_AUX3, |
| 28 | |
Simon Glass | c404aa6 | 2015-04-20 12:37:24 -0600 | [diff] [blame] | 29 | REG_COUNT = 0x80, |
| 30 | }; |
| 31 | |
| 32 | #endif |