Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *  eseries-gpio.h
0004  *
0005  *  Copyright (C) Ian Molton <spyro@f2s.com>
0006  */
0007 
0008 /* e-series power button */
0009 #define GPIO_ESERIES_POWERBTN     0
0010 
0011 /* UDC GPIO definitions */
0012 #define GPIO_E7XX_USB_DISC       13
0013 #define GPIO_E7XX_USB_PULLUP      3
0014 
0015 #define GPIO_E800_USB_DISC        4
0016 #define GPIO_E800_USB_PULLUP     84
0017 
0018 /* e740 PCMCIA GPIO definitions */
0019 /* Note: PWR1 seems to be inverted */
0020 #define GPIO_E740_PCMCIA_CD0      8
0021 #define GPIO_E740_PCMCIA_CD1     44
0022 #define GPIO_E740_PCMCIA_RDY0    11
0023 #define GPIO_E740_PCMCIA_RDY1     6
0024 #define GPIO_E740_PCMCIA_RST0    27
0025 #define GPIO_E740_PCMCIA_RST1    24
0026 #define GPIO_E740_PCMCIA_PWR0    20
0027 #define GPIO_E740_PCMCIA_PWR1    23
0028 
0029 /* e750 PCMCIA GPIO definitions */
0030 #define GPIO_E750_PCMCIA_CD0      8
0031 #define GPIO_E750_PCMCIA_RDY0    12
0032 #define GPIO_E750_PCMCIA_RST0    27
0033 #define GPIO_E750_PCMCIA_PWR0    20
0034 
0035 /* e800 PCMCIA GPIO definitions */
0036 #define GPIO_E800_PCMCIA_RST0    69
0037 #define GPIO_E800_PCMCIA_RST1    72
0038 #define GPIO_E800_PCMCIA_PWR0    20
0039 #define GPIO_E800_PCMCIA_PWR1    73
0040 
0041 /* e7xx IrDA power control */
0042 #define GPIO_E7XX_IR_OFF         38
0043 
0044 /* e740 audio control GPIOs */
0045 #define GPIO_E740_WM9705_nAVDD2  16
0046 #define GPIO_E740_MIC_ON         40
0047 #define GPIO_E740_AMP_ON         41
0048 
0049 /* e750 audio control GPIOs */
0050 #define GPIO_E750_HP_AMP_OFF      4
0051 #define GPIO_E750_SPK_AMP_OFF     7
0052 #define GPIO_E750_HP_DETECT      37
0053 
0054 /* e800 audio control GPIOs */
0055 #define GPIO_E800_HP_DETECT      81
0056 #define GPIO_E800_HP_AMP_OFF     82
0057 #define GPIO_E800_SPK_AMP_ON     83
0058 
0059 /* ASIC related GPIOs */
0060 #define GPIO_ESERIES_TMIO_IRQ        5
0061 #define GPIO_ESERIES_TMIO_PCLR      19
0062 #define GPIO_ESERIES_TMIO_SUSPEND   45
0063 #define GPIO_E800_ANGELX_IRQ      8