sync hh.org
[hh.org.git] / include / asm-arm / arch-pxa / h1900-gpio.h
blob3618ec87b8a6a249a523e0100fa17b5d97362ed8
1 /*
3 * Definitions for HP iPAQ Handheld Computer
5 * Copyright 2003 Hewlett-Packard Company.
7 * Use consistent with the GNU GPL is permitted,
8 * provided that this copyright notice is
9 * preserved in its entirety in all copies and derived works.
11 * COMPAQ COMPUTER CORPORATION MAKES NO WARRANTIES, EXPRESSED OR IMPLIED,
12 * AS TO THE USEFULNESS OR CORRECTNESS OF THIS CODE OR ITS
13 * FITNESS FOR ANY PARTICULAR PURPOSE.
15 * Author: Jamey Hicks.
19 #ifndef _H1900_GPIO_H_
20 #define _H1900_GPIO_H_
22 /* INPUT and OUTPUT are just what joshua notes wince sets 'em up as. */
24 #define GPIO_NR_H1900_POWER_BUTTON_N (0) /* Also known as the "off button" - INPUT */
25 #define GPIO_NR_H1900_WARM_RST_N (1) /* external circuit to differentiate warm/cold resets - INPUT*/
26 #define GPIO_NR_H1900_SD_DETECT_N (2) /* INPUT */
27 #define GPIO_NR_H1900_CHARGING (3) /* charger active signal INPUT */
28 #define GPIO_NR_H1900_AC_IN_N (4) /* detect ac adapter */
29 #define GPIO_NR_H1900_BATTERY_DOOR_N (5) /* whether door is present */
30 // gpio 6 not connected ?
31 #define GPIO_NR_H1900_USB_DETECT2_N (7) /* Seems to detect USB also.*/
32 #define GPIO_NR_H1900_APP_BUTTON0_N (8) /* app button 0 */
33 #define GPIO_NR_H1900_ASIC_IRQ_1_N (9) /* ASIC IRQ? */
34 #define GPIO_NR_H1900_SD_IRQ_N (10)
35 #define GPIO_NR_H1900_MBAT_IN (11) /* battery present */
36 #define GPIO_NR_H1900_ASIC3_IRQ (12) /* I can't get this to fire. - OUTPUT */
37 #define GPIO_NR_H1900_ASIC_IRQ_2_N (13) /* ASIC IRQ? */
38 #define GPIO_NR_H1900_USB_DETECT_N (14) /* This seems to be USB_DETECT_N */
39 #define GPIO_NR_H1900_RECORD_BUTTON_N (15) /* not used for CS1#. unsure if correct. - OUTPUT*/
40 #define GPIO_NR_H1900_LCD_PWM (16) /* OUTPUT */
41 #define GPIO_NR_H1900_SOFT_RESET_N (17) /* OUTPUT - take it low, then hit power, and the device downloads brownware*/
42 // 18 is RDY (need to set GAFR)
43 #define GPIO_NR_H1900_UP_BUTTON_N (19) /* INPUT */
44 #define GPIO_NR_H1900_APP_BUTTON2_N (20) /* always zero? - OUTPUT */
45 #define GPIO_NR_H1900_ACTION_BUTTON_N (21) /* INPUT */
46 // 22 unused
47 #define GPIO_NR_H1900_SPI_CLK (23) /* SPI/Microwire things */
48 #define GPIO_NR_H1900_SPI_CS_N (24) /* Used for touchscreen */
49 #define GPIO_NR_H1900_SPI_TXD (25)
50 #define GPIO_NR_H1900_SPI_RXD (26)
51 #define GPIO_NR_H1900_PEN_IRQ_N (27) /* detect stylus down */
53 /* IIS to UDA1380 */
54 #define GPIO_NR_H1900_AC97_BITCLK (28)
55 #define GPIO_NR_H1900_AC97_SDATA_IN (29)
56 #define GPIO_NR_H1900_AC97_SDATA_OUT (30)
57 #define GPIO_NR_H1900_AC97_SYNC (31)
59 #define GPIO_NR_H1900_SYS_CLK (32) /* check connection of this */
60 // 33 is CS5#, (need to set GAFR)
62 #define GPIO_NR_H1900_LCD_SOMETHING (34) /* it seems we have to set this */
63 #define GPIO_NR_H1900_FFUART_CTS_N (35)
64 #define GPIO_NR_H1900_FL_PWR_EN (36) /* front light. have to steal this from serial driver */
65 #define GPIO_NR_H1900_FLASH_VPEN (37) /* have to steal this from serial driver. */
66 #define GPIO_NR_H1900_LCD_PCI (38) /* LCD ??. have to steal this from serial driver. */
67 #define GPIO_NR_H1900_FFUART_TXD (39)
68 #define GPIO_NR_H1900_FW_LOW_N (40) /* output, something to do with reset, steal from serial */
69 #define GPIO_NR_H1900_FFUART_RTS_N (41)
71 #define GPIO_NR_H1900_CHARGER_EN (42)
72 #define GPIO_NR_H1900_DOWN_BUTTON_N (43)
73 #define GPIO_NR_H1900_LEFT_BUTTON_N (44)
74 #define GPIO_NR_H1900_RIGHT_BUTTON_N (45)
76 #define GPIO_NR_H1900_IR_RXD (46)
77 #define GPIO_NR_H1900_IR_TXD (47)
79 #define GPIO_NR_H1900_VGL_EN (48) /* lcd -7V supply */
81 // 49 is PWE# (need to set GAFR)
83 #define GPIO_NR_H1900_LCD_DVDD_EN (50) /* 2.5V to LCD */
84 #define GPIO_NR_H1900_LCD_TYPE (51)
85 #define GPIO_NR_H1900_SPEAKER_EN (52) /* speaker amplifier power */
86 #define GPIO_NR_H1900_CODEC_AUDIO_RESET (53)
87 #define GPIO_NR_H1900_ASIC3_RESET_N (54)
88 #define GPIO_NR_H1900_FLASH_BUSY_N (55)
89 #define GPIO_NR_H1900_KB_DETECT_N (56)
90 #define GPIO_NR_H1900_HEADPHONE_IN_N (57) /* headphone detect? */
92 // 58 through 77 is LCD signals (need to set GAFR)
94 // 78 is CS2# (need to set GAFR) /* nand flash */
95 // 79 is CS3# (need to set GAFR)
96 // 80 is CS4# (need to set GAFR) /* asic3 is on CS4# ? */
98 #endif /* _H1900_GPIO_H_ */