davinci_rtc.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
  4. *
  5. * Based on:
  6. *
  7. * -------------------------------------------------------------------------
  8. *
  9. * linux/include/asm-arm/arch-davinci/hardware.h
  10. *
  11. * Copyright (C) 2006 Texas Instruments.
  12. */
  13. #ifndef __ASM_DAVINCI_RTC_H
  14. #define __ASM_DAVINCI_RTC_H
  15. struct davinci_rtc {
  16. unsigned int second;
  17. unsigned int minutes;
  18. unsigned int hours;
  19. unsigned int day;
  20. unsigned int month; /* 0x10 */
  21. unsigned int year;
  22. unsigned int dotw;
  23. unsigned int resv1;
  24. unsigned int alarmsecond; /* 0x20 */
  25. unsigned int alarmminute;
  26. unsigned int alarmhour;
  27. unsigned int alarmday;
  28. unsigned int alarmmonth; /* 0x30 */
  29. unsigned int alarmyear;
  30. unsigned int resv2[2];
  31. unsigned int ctrl; /* 0x40 */
  32. unsigned int status;
  33. unsigned int irq;
  34. unsigned int complsb;
  35. unsigned int compmsb; /* 0x50 */
  36. unsigned int osc;
  37. unsigned int resv3[2];
  38. unsigned int scratch0; /* 0x60 */
  39. unsigned int scratch1;
  40. unsigned int scratch2;
  41. unsigned int kick0r;
  42. unsigned int kick1r; /* 0x70 */
  43. };
  44. #define RTC_STATE_BUSY 0x01
  45. #define RTC_STATE_RUN 0x02
  46. #define RTC_KICK0R_WE 0x83e70b13
  47. #define RTC_KICK1R_WE 0x95a4f1e0
  48. #endif