xref: /OK3568_Linux_fs/kernel/arch/arm/mach-pxa/h5000.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Hardware definitions for HP iPAQ h5xxx Handheld Computers
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright(20)02 Hewlett-Packard Company.
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * COMPAQ COMPUTER CORPORATION MAKES NO WARRANTIES, EXPRESSED OR IMPLIED,
8*4882a593Smuzhiyun  * AS TO THE USEFULNESS OR CORRECTNESS OF THIS CODE OR ITS
9*4882a593Smuzhiyun  * FITNESS FOR ANY PARTICULAR PURPOSE.
10*4882a593Smuzhiyun  *
11*4882a593Smuzhiyun  * Author: Jamey Hicks
12*4882a593Smuzhiyun  */
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #ifndef __ASM_ARCH_H5000_H
15*4882a593Smuzhiyun #define __ASM_ARCH_H5000_H
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #include "mfp-pxa25x.h"
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun /*
20*4882a593Smuzhiyun  * CPU GPIOs
21*4882a593Smuzhiyun  */
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #define H5000_GPIO_POWER_BUTTON   (0)
24*4882a593Smuzhiyun #define H5000_GPIO_RESET_BUTTON_N (1)
25*4882a593Smuzhiyun #define H5000_GPIO_OPT_INT        (2)
26*4882a593Smuzhiyun #define H5000_GPIO_BACKUP_POWER   (3)
27*4882a593Smuzhiyun #define H5000_GPIO_ACTION_BUTTON  (4)
28*4882a593Smuzhiyun #define H5000_GPIO_COM_DCD_SOMETHING  (5) /* what is this really ? */
29*4882a593Smuzhiyun /* 6 not connected */
30*4882a593Smuzhiyun #define H5000_GPIO_RESET_BUTTON_AGAIN_N (7) /* connected to gpio 1 as well */
31*4882a593Smuzhiyun /* 8 not connected */
32*4882a593Smuzhiyun #define H5000_GPIO_RSO_N          (9)       /* reset output from max1702 which regulates 3.3 and 2.5 */
33*4882a593Smuzhiyun #define H5000_GPIO_ASIC_INT_N   (10)       /* from companion asic */
34*4882a593Smuzhiyun #define H5000_GPIO_BT_ENV_0     (11)       /* to LMX9814, set to 1 according to regdump */
35*4882a593Smuzhiyun /*(12) not connected */
36*4882a593Smuzhiyun #define H5000_GPIO_BT_ENV_1     (13)       /* to LMX9814, set to 1 according to regdump */
37*4882a593Smuzhiyun #define H5000_GPIO_BT_WU        (14)       /* from LMX9814, Defined as HOST_WAKEUP in the LMX9820 data sheet */
38*4882a593Smuzhiyun /*(15) is CS1# */
39*4882a593Smuzhiyun /*(16) not connected */
40*4882a593Smuzhiyun /*(17) not connected */
41*4882a593Smuzhiyun /*(18) is pcmcia ready */
42*4882a593Smuzhiyun /*(19) is dreq1 */
43*4882a593Smuzhiyun /*(20) is dreq0 */
44*4882a593Smuzhiyun #define H5000_GPIO_OE_RD_NWR	(21)       /* output enable on rd/nwr signal to companion asic */
45*4882a593Smuzhiyun /*(22) is not connected */
46*4882a593Smuzhiyun #define H5000_GPIO_OPT_SPI_CLK  (23)       /* to extension pack */
47*4882a593Smuzhiyun #define H5000_GPIO_OPT_SPI_CS_N (24)       /* to extension pack */
48*4882a593Smuzhiyun #define H5000_GPIO_OPT_SPI_DOUT (25)       /* to extension pack */
49*4882a593Smuzhiyun #define H5000_GPIO_OPT_SPI_DIN  (26)       /* to extension pack */
50*4882a593Smuzhiyun /*(27) not connected */
51*4882a593Smuzhiyun #define H5000_GPIO_I2S_BITCLK   (28)       /* connected to AC97 codec */
52*4882a593Smuzhiyun #define H5000_GPIO_I2S_DATAOUT  (29)       /* connected to AC97 codec */
53*4882a593Smuzhiyun #define H5000_GPIO_I2S_DATAIN   (30)       /* connected to AC97 codec */
54*4882a593Smuzhiyun #define H5000_GPIO_I2S_LRCLK    (31)       /* connected to AC97 codec */
55*4882a593Smuzhiyun #define H5000_GPIO_I2S_SYSCLK   (32)       /* connected to AC97 codec */
56*4882a593Smuzhiyun /*(33) is CS5# */
57*4882a593Smuzhiyun #define H5000_GPIO_COM_RXD      (34)       /* connected to cradle/cable connector */
58*4882a593Smuzhiyun #define H5000_GPIO_COM_CTS      (35)       /* connected to cradle/cable connector */
59*4882a593Smuzhiyun #define H5000_GPIO_COM_DCD      (36)       /* connected to cradle/cable connector */
60*4882a593Smuzhiyun #define H5000_GPIO_COM_DSR      (37)       /* connected to cradle/cable connector */
61*4882a593Smuzhiyun #define H5000_GPIO_COM_RI       (38)       /* connected to cradle/cable connector */
62*4882a593Smuzhiyun #define H5000_GPIO_COM_TXD      (39)       /* connected to cradle/cable connector */
63*4882a593Smuzhiyun #define H5000_GPIO_COM_DTR      (40)       /* connected to cradle/cable connector */
64*4882a593Smuzhiyun #define H5000_GPIO_COM_RTS      (41)       /* connected to cradle/cable connector */
65*4882a593Smuzhiyun 
66*4882a593Smuzhiyun #define H5000_GPIO_BT_RXD       (42)       /* connected to BT (LMX9814) */
67*4882a593Smuzhiyun #define H5000_GPIO_BT_TXD       (43)       /* connected to BT (LMX9814) */
68*4882a593Smuzhiyun #define H5000_GPIO_BT_CTS       (44)       /* connected to BT (LMX9814) */
69*4882a593Smuzhiyun #define H5000_GPIO_BT_RTS       (45)       /* connected to BT (LMX9814) */
70*4882a593Smuzhiyun 
71*4882a593Smuzhiyun #define H5000_GPIO_IRDA_RXD     (46)
72*4882a593Smuzhiyun #define H5000_GPIO_IRDA_TXD     (47)
73*4882a593Smuzhiyun 
74*4882a593Smuzhiyun #define H5000_GPIO_POE_N        (48)       /* used for pcmcia */
75*4882a593Smuzhiyun #define H5000_GPIO_PWE_N        (49)       /* used for pcmcia */
76*4882a593Smuzhiyun #define H5000_GPIO_PIOR_N       (50)       /* used for pcmcia */
77*4882a593Smuzhiyun #define H5000_GPIO_PIOW_N       (51)       /* used for pcmcia */
78*4882a593Smuzhiyun #define H5000_GPIO_PCE1_N       (52)       /* used for pcmcia */
79*4882a593Smuzhiyun #define H5000_GPIO_PCE2_N       (53)       /* used for pcmcia */
80*4882a593Smuzhiyun #define H5000_GPIO_PSKTSEL      (54)       /* used for pcmcia */
81*4882a593Smuzhiyun #define H5000_GPIO_PREG_N       (55)       /* used for pcmcia */
82*4882a593Smuzhiyun #define H5000_GPIO_PWAIT_N      (56)       /* used for pcmcia */
83*4882a593Smuzhiyun #define H5000_GPIO_IOIS16_N     (57)       /* used for pcmcia */
84*4882a593Smuzhiyun 
85*4882a593Smuzhiyun #define H5000_GPIO_IRDA_SD      (58)       /* to hsdl3002 sd */
86*4882a593Smuzhiyun /*(59) not connected */
87*4882a593Smuzhiyun #define H5000_GPIO_POWER_SD_N   (60)       /* controls power to SD */
88*4882a593Smuzhiyun #define H5000_GPIO_POWER_RS232_N	(61)       /* inverted FORCEON to rs232 transceiver */
89*4882a593Smuzhiyun #define H5000_GPIO_POWER_ACCEL_N	(62)       /* controls power to accel */
90*4882a593Smuzhiyun /*(63) is not connected */
91*4882a593Smuzhiyun #define H5000_GPIO_OPT_NVRAM    (64)       /* controls power to expansion pack */
92*4882a593Smuzhiyun #define H5000_GPIO_CHG_EN       (65)       /* to sc801 en */
93*4882a593Smuzhiyun #define H5000_GPIO_USB_PULLUP   (66)       /* USB d+ pullup via 1.5K resistor */
94*4882a593Smuzhiyun #define H5000_GPIO_BT_2V8_N     (67)       /* 2.8V used by bluetooth */
95*4882a593Smuzhiyun #define H5000_GPIO_EXT_CHG_RATE (68)       /* enables external charging rate */
96*4882a593Smuzhiyun /*(69) is not connected */
97*4882a593Smuzhiyun #define H5000_GPIO_CIR_RESET    (70)       /* consumer IR reset */
98*4882a593Smuzhiyun #define H5000_GPIO_POWER_LIGHT_SENSOR_N	(71)
99*4882a593Smuzhiyun #define H5000_GPIO_BT_M_RESET   (72)
100*4882a593Smuzhiyun #define H5000_GPIO_STD_CHG_RATE (73)
101*4882a593Smuzhiyun #define H5000_GPIO_SD_WP_N      (74)
102*4882a593Smuzhiyun #define H5000_GPIO_MOTOR_ON_N   (75)       /* external pullup on this */
103*4882a593Smuzhiyun #define H5000_GPIO_HEADPHONE_DETECT	(76)
104*4882a593Smuzhiyun #define H5000_GPIO_USB_CHG_RATE (77)       /* select rate for charging via usb */
105*4882a593Smuzhiyun /*(78) is CS2# */
106*4882a593Smuzhiyun /*(79) is CS3# */
107*4882a593Smuzhiyun /*(80) is CS4# */
108*4882a593Smuzhiyun 
109*4882a593Smuzhiyun #endif /* __ASM_ARCH_H5000_H */
110