rtc.h 385 B

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