eseries-gpio.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * eseries-gpio.h
  4. *
  5. * Copyright (C) Ian Molton <[email protected]>
  6. */
  7. /* e-series power button */
  8. #define GPIO_ESERIES_POWERBTN 0
  9. /* UDC GPIO definitions */
  10. #define GPIO_E7XX_USB_DISC 13
  11. #define GPIO_E7XX_USB_PULLUP 3
  12. #define GPIO_E800_USB_DISC 4
  13. #define GPIO_E800_USB_PULLUP 84
  14. /* e740 PCMCIA GPIO definitions */
  15. /* Note: PWR1 seems to be inverted */
  16. #define GPIO_E740_PCMCIA_CD0 8
  17. #define GPIO_E740_PCMCIA_CD1 44
  18. #define GPIO_E740_PCMCIA_RDY0 11
  19. #define GPIO_E740_PCMCIA_RDY1 6
  20. #define GPIO_E740_PCMCIA_RST0 27
  21. #define GPIO_E740_PCMCIA_RST1 24
  22. #define GPIO_E740_PCMCIA_PWR0 20
  23. #define GPIO_E740_PCMCIA_PWR1 23
  24. /* e750 PCMCIA GPIO definitions */
  25. #define GPIO_E750_PCMCIA_CD0 8
  26. #define GPIO_E750_PCMCIA_RDY0 12
  27. #define GPIO_E750_PCMCIA_RST0 27
  28. #define GPIO_E750_PCMCIA_PWR0 20
  29. /* e800 PCMCIA GPIO definitions */
  30. #define GPIO_E800_PCMCIA_RST0 69
  31. #define GPIO_E800_PCMCIA_RST1 72
  32. #define GPIO_E800_PCMCIA_PWR0 20
  33. #define GPIO_E800_PCMCIA_PWR1 73
  34. /* e7xx IrDA power control */
  35. #define GPIO_E7XX_IR_OFF 38
  36. /* e740 audio control GPIOs */
  37. #define GPIO_E740_WM9705_nAVDD2 16
  38. #define GPIO_E740_MIC_ON 40
  39. #define GPIO_E740_AMP_ON 41
  40. /* e750 audio control GPIOs */
  41. #define GPIO_E750_HP_AMP_OFF 4
  42. #define GPIO_E750_SPK_AMP_OFF 7
  43. #define GPIO_E750_HP_DETECT 37
  44. /* e800 audio control GPIOs */
  45. #define GPIO_E800_HP_DETECT 81
  46. #define GPIO_E800_HP_AMP_OFF 82
  47. #define GPIO_E800_SPK_AMP_ON 83
  48. /* ASIC related GPIOs */
  49. #define GPIO_ESERIES_TMIO_IRQ 5
  50. #define GPIO_ESERIES_TMIO_PCLR 19
  51. #define GPIO_ESERIES_TMIO_SUSPEND 45
  52. #define GPIO_E800_ANGELX_IRQ 8