davinci_rtc.h 1.2 KB

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