wcd934x_irq.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright (c) 2017, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef __WCD934X_IRQ_H_
  14. #define __WCD934X_IRQ_H_
  15. enum {
  16. /* INTR_REG 0 */
  17. WCD934X_IRQ_MISC = 1,
  18. WCD934X_IRQ_HPH_PA_OCPL_FAULT,
  19. WCD934X_IRQ_HPH_PA_OCPR_FAULT,
  20. WCD934X_IRQ_EAR_PA_OCP_FAULT,
  21. WCD934X_IRQ_HPH_PA_CNPL_COMPLETE,
  22. WCD934X_IRQ_HPH_PA_CNPR_COMPLETE,
  23. WCD934X_IRQ_EAR_PA_CNP_COMPLETE,
  24. /* INTR_REG 1 */
  25. WCD934X_IRQ_MBHC_SW_DET,
  26. WCD934X_IRQ_MBHC_ELECT_INS_REM_DET,
  27. WCD934X_IRQ_MBHC_BUTTON_PRESS_DET,
  28. WCD934X_IRQ_MBHC_BUTTON_RELEASE_DET,
  29. WCD934X_IRQ_MBHC_ELECT_INS_REM_LEG_DET,
  30. WCD934X_IRQ_RESERVED_0,
  31. WCD934X_IRQ_RESERVED_1,
  32. WCD934X_IRQ_RESERVED_2,
  33. /* INTR_REG 2 */
  34. WCD934X_IRQ_LINE_PA1_CNP_COMPLETE,
  35. WCD934X_IRQ_LINE_PA2_CNP_COMPLETE,
  36. WCD934X_IRQ_SLNQ_ANALOG_ERROR,
  37. WCD934X_IRQ_RESERVED_3,
  38. WCD934X_IRQ_SOUNDWIRE,
  39. WCD934X_IRQ_VDD_DIG_RAMP_COMPLETE,
  40. WCD934X_IRQ_RCO_ERROR,
  41. WCD934X_IRQ_CPE_ERROR,
  42. /* INTR_REG 3 */
  43. WCD934X_IRQ_MAD_AUDIO,
  44. WCD934X_IRQ_MAD_BEACON,
  45. WCD934X_IRQ_MAD_ULTRASOUND,
  46. WCD934X_IRQ_VBAT_ATTACK,
  47. WCD934X_IRQ_VBAT_RESTORE,
  48. WCD934X_IRQ_CPE1_INTR,
  49. WCD934X_IRQ_RESERVED_4,
  50. WCD934X_IRQ_SLNQ_DIGITAL,
  51. WCD934X_NUM_IRQS,
  52. };
  53. #endif