regs-pwm.h 609 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (c) 2014 Zhang, Keguang <[email protected]>
  4. *
  5. * Loongson 1 PWM Register Definitions.
  6. */
  7. #ifndef __ASM_MACH_LOONGSON32_REGS_PWM_H
  8. #define __ASM_MACH_LOONGSON32_REGS_PWM_H
  9. /* Loongson 1 PWM Timer Register Definitions */
  10. #define PWM_CNT 0x0
  11. #define PWM_HRC 0x4
  12. #define PWM_LRC 0x8
  13. #define PWM_CTRL 0xc
  14. /* PWM Control Register Bits */
  15. #define CNT_RST BIT(7)
  16. #define INT_SR BIT(6)
  17. #define INT_EN BIT(5)
  18. #define PWM_SINGLE BIT(4)
  19. #define PWM_OE BIT(3)
  20. #define CNT_EN BIT(0)
  21. #endif /* __ASM_MACH_LOONGSON32_REGS_PWM_H */