regs-ost.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_MACH_REGS_OST_H
  3. #define __ASM_MACH_REGS_OST_H
  4. #include <mach/hardware.h>
  5. /*
  6. * OS Timer & Match Registers
  7. */
  8. #define OSMR0 io_p2v(0x40A00000) /* */
  9. #define OSMR1 io_p2v(0x40A00004) /* */
  10. #define OSMR2 io_p2v(0x40A00008) /* */
  11. #define OSMR3 io_p2v(0x40A0000C) /* */
  12. #define OSMR4 io_p2v(0x40A00080) /* */
  13. #define OSCR io_p2v(0x40A00010) /* OS Timer Counter Register */
  14. #define OSCR4 io_p2v(0x40A00040) /* OS Timer Counter Register */
  15. #define OMCR4 io_p2v(0x40A000C0) /* */
  16. #define OSSR io_p2v(0x40A00014) /* OS Timer Status Register */
  17. #define OWER io_p2v(0x40A00018) /* OS Timer Watchdog Enable Register */
  18. #define OIER io_p2v(0x40A0001C) /* OS Timer Interrupt Enable Register */
  19. #define OSSR_M3 (1 << 3) /* Match status channel 3 */
  20. #define OSSR_M2 (1 << 2) /* Match status channel 2 */
  21. #define OSSR_M1 (1 << 1) /* Match status channel 1 */
  22. #define OSSR_M0 (1 << 0) /* Match status channel 0 */
  23. #define OWER_WME (1 << 0) /* Watchdog Match Enable */
  24. #define OIER_E3 (1 << 3) /* Interrupt enable channel 3 */
  25. #define OIER_E2 (1 << 2) /* Interrupt enable channel 2 */
  26. #define OIER_E1 (1 << 1) /* Interrupt enable channel 1 */
  27. #define OIER_E0 (1 << 0) /* Interrupt enable channel 0 */
  28. #endif /* __ASM_MACH_REGS_OST_H */