rtc-s3c.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2003 Simtec Electronics <linux@simtec.co.uk>
  4. * http://www.simtec.co.uk/products/SWLINUX/
  5. *
  6. * S3C2410 Internal RTC register definition
  7. */
  8. #ifndef __ASM_ARCH_REGS_RTC_H
  9. #define __ASM_ARCH_REGS_RTC_H __FILE__
  10. #define S3C2410_RTCREG(x) (x)
  11. #define S3C2410_INTP S3C2410_RTCREG(0x30)
  12. #define S3C2410_INTP_ALM (1 << 1)
  13. #define S3C2410_INTP_TIC (1 << 0)
  14. #define S3C2410_RTCCON S3C2410_RTCREG(0x40)
  15. #define S3C2410_RTCCON_RTCEN (1 << 0)
  16. #define S3C2410_RTCCON_CNTSEL (1 << 2)
  17. #define S3C2410_RTCCON_CLKRST (1 << 3)
  18. #define S3C2443_RTCCON_TICSEL (1 << 4)
  19. #define S3C64XX_RTCCON_TICEN (1 << 8)
  20. #define S3C2410_RTCALM S3C2410_RTCREG(0x50)
  21. #define S3C2410_RTCALM_ALMEN (1 << 6)
  22. #define S3C2410_RTCALM_YEAREN (1 << 5)
  23. #define S3C2410_RTCALM_MONEN (1 << 4)
  24. #define S3C2410_RTCALM_DAYEN (1 << 3)
  25. #define S3C2410_RTCALM_HOUREN (1 << 2)
  26. #define S3C2410_RTCALM_MINEN (1 << 1)
  27. #define S3C2410_RTCALM_SECEN (1 << 0)
  28. #define S3C2410_ALMSEC S3C2410_RTCREG(0x54)
  29. #define S3C2410_ALMMIN S3C2410_RTCREG(0x58)
  30. #define S3C2410_ALMHOUR S3C2410_RTCREG(0x5c)
  31. #define S3C2410_ALMDATE S3C2410_RTCREG(0x60)
  32. #define S3C2410_ALMMON S3C2410_RTCREG(0x64)
  33. #define S3C2410_ALMYEAR S3C2410_RTCREG(0x68)
  34. #define S3C2410_RTCSEC S3C2410_RTCREG(0x70)
  35. #define S3C2410_RTCMIN S3C2410_RTCREG(0x74)
  36. #define S3C2410_RTCHOUR S3C2410_RTCREG(0x78)
  37. #define S3C2410_RTCDATE S3C2410_RTCREG(0x7c)
  38. #define S3C2410_RTCMON S3C2410_RTCREG(0x84)
  39. #define S3C2410_RTCYEAR S3C2410_RTCREG(0x88)
  40. #endif /* __ASM_ARCH_REGS_RTC_H */