mk48t59.h 658 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Registers for the mk48t59 real-time-clock
  3. */
  4. #ifndef _PPC_MK48T59_H
  5. #define _PPC_MK48T59_H
  6. /* RTC Offsets */
  7. #define MK48T59_RTC_SECONDS 0x1FF9
  8. #define MK48T59_RTC_MINUTES 0x1FFA
  9. #define MK48T59_RTC_HOURS 0x1FFB
  10. #define MK48T59_RTC_DAY_OF_WEEK 0x1FFC
  11. #define MK48T59_RTC_DAY_OF_MONTH 0x1FFD
  12. #define MK48T59_RTC_MONTH 0x1FFE
  13. #define MK48T59_RTC_YEAR 0x1FFF
  14. #define MK48T59_RTC_CONTROLA 0x1FF8
  15. #define MK48T59_RTC_CA_WRITE 0x80
  16. #define MK48T59_RTC_CA_READ 0x40
  17. #define MK48T59_RTC_CA_CALIB_SIGN 0x20
  18. #define MK48T59_RTC_CA_CALIB_MASK 0x1f
  19. #define MK48T59_RTC_CONTROLB 0x1FF9
  20. #define MK48T59_RTC_CB_STOP 0x80
  21. #endif /* _PPC_MK48T59_H */