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