rtc.h 385 B

12345678910111213141516171819202122232425262728
  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. #ifndef __asm_rtc_h
  10. #define __asm_rtc_h
  11. /* Register numbers in the sandbox RTC */
  12. enum {
  13. REG_SEC = 5,
  14. REG_MIN,
  15. REG_HOUR,
  16. REG_MDAY,
  17. REG_MON,
  18. REG_YEAR,
  19. REG_WDAY,
  20. REG_RESET = 0x20,
  21. REG_COUNT = 0x80,
  22. };
  23. #endif