sync hh.org
[hh.org.git] / include / asm-arm / arch-pxa / himalaya-gpio.h
blob2d8687532c00e099610c91511bb54ca06aa091e0
1 /*
3 * Definitions for HTC Himalaya
5 * Copyright 2004 Xanadux.org
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 * Author: w4xy@xanadux.org
15 /* Names based on h1900-gpio.h */
17 #ifndef _HIMALAYA_GPIO_H_
18 #define _HIMALAYA_GPIO_H_
20 #define HIMALAYA_ASIC3_SD_PHYS 0x0D000000
21 #define HIMALAYA_ASIC3_PHYS 0x0D800000
23 #define GPIO_NR_HIMALAYA_POWER_BUTTON_N (0) /* Also known as the "off button" - INPUT */
24 #define GPIO_NR_HIMALAYA_WARM_RST_N (1) /* external circuit to differentiate warm/cold resets - INPUT*/
26 #define GPIO_NR_HIMALAYA_USB_DETECT_N (3)
27 #define GPIO_NR_HIMALAYA_RS232_IN (4)
28 #define GPIO_NR_HIMALAYA_PEN (5)
29 #define GPIO_NR_HIMALAYA_BUTTON (7)
30 #define GPIO_NR_HIMALAYA_ASIC3 (8)
31 #define GPIO_NR_HIMALAYA_UART_POWER (21)
32 #define GPIO_NR_HIMALAYA_USB_PULLUP_N (60)
33 #define GPIO_NR_HIMALAYA_CHARGER_EN (63)
35 #define IRQ_NR_HIMALAYA_USB_DETECT_N IRQ_GPIO(GPIO_NR_HIMALAYA_USB_DETECT_N)
36 #define IRQ_NR_HIMALAYA_RS232_IN IRQ_GPIO(GPIO_NR_HIMALAYA_RS232_IN)
37 #define IRQ_NR_HIMALAYA_PEN IRQ_GPIO(GPIO_NR_HIMALAYA_PEN)
38 #define IRQ_NR_HIMALAYA_BUTTON IRQ_GPIO(GPIO_NR_HIMALAYA_BUTTON)
39 #define IRQ_NR_HIMALAYA_ASIC3 IRQ_GPIO(GPIO_NR_HIMALAYA_ASIC3)
42 #define GPIO_NR_HIMALAYA_COM_DCD
43 #define GPIO_NR_HIMALAYA_AC_IN_N
44 #define GPIO_NR_HIMALAYA_BATTERY_DOOR_N
45 #define GPIO_NR_HIMALAYA_USB_DETECT2_N
46 #define GPIO_NR_HIMALAYA_APP_BUTTON0_N
47 #define GPIO_NR_HIMALAYA_ASIC_IRQ_1_N
48 #define GPIO_NR_HIMALAYA_SD_IRQ_N
49 #define GPIO_NR_HIMALAYA_MBAT_IN
50 #define GPIO_NR_HIMALAYA_ASIC3_IRQ
51 #define GPIO_NR_HIMALAYA_ASIC_IRQ_2_N
52 #define GPIO_NR_HIMALAYA_USB_DETECT_N
53 #define GPIO_NR_HIMALAYA_RECORD_BUTTON_N
54 #define GPIO_NR_HIMALAYA_LCD_PWM
55 #define GPIO_NR_HIMALAYA_SOFT_RESET_N
56 #define GPIO_NR_HIMALAYA_UP_BUTTON_N
57 #define GPIO_NR_HIMALAYA_APP_BUTTON2_N
58 #define GPIO_NR_HIMALAYA_ACTION_BUTTON_
59 #define GPIO_NR_HIMALAYA_SPI_CLK
60 #define GPIO_NR_HIMALAYA_SPI_CS_N
61 #define GPIO_NR_HIMALAYA_SPI_TXD
62 #define GPIO_NR_HIMALAYA_SPI_RXD
63 #define GPIO_NR_HIMALAYA_PEN_IRQ_N
65 #define GPIO_NR_HIMALAYA_AC97_BITCLK
66 #define GPIO_NR_HIMALAYA_AC97_SDATA_IN
67 #define GPIO_NR_HIMALAYA_AC97_SDATA_OUT
68 #define GPIO_NR_HIMALAYA_AC97_SYNC
70 #define GPIO_NR_HIMALAYA_SYS_CLK
72 #define GPIO_NR_HIMALAYA_LCD_SOMETHING
73 #define GPIO_NR_HIMALAYA_FFUART_CTS_N
74 #define GPIO_NR_HIMALAYA_FL_PWR_EN
75 #define GPIO_NR_HIMALAYA_FLASH_VPEN
76 #define GPIO_NR_HIMALAYA_LCD_PCI
77 #define GPIO_NR_HIMALAYA_FFUART_TXD
78 #define GPIO_NR_HIMALAYA_FW_LOW_N
79 #define GPIO_NR_HIMALAYA_FFUART_RTS_N
81 #define GPIO_NR_HIMALAYA_CHARGER_EN
82 #define GPIO_NR_HIMALAYA_DOWN_BUTTON_N
83 #define GPIO_NR_HIMALAYA_LEFT_BUTTON_N
84 #define GPIO_NR_HIMALAYA_RIGHT_BUTTON_N
86 #define GPIO_NR_HIMALAYA_IR_RXD
87 #define GPIO_NR_HIMALAYA_IR_TXD
89 #define GPIO_NR_HIMALAYA_VGL_EN
91 #define GPIO_NR_HIMALAYA_LCD_DVDD_EN
92 #define GPIO_NR_HIMALAYA_AUX_PWR_EN
93 #define GPIO_NR_HIMALAYA_SPEAKER_EN
94 #define GPIO_NR_HIMALAYA_HEADPHONE_EN
95 #define GPIO_NR_HIMALAYA_ASIC3_RESET_N
96 #define GPIO_NR_HIMALAYA_FLASH_BUSY_N
97 #define GPIO_NR_HIMALAYA_KB_DETECT_N
98 #define GPIO_NR_HIMALAYA_HEADPHONE_IN_N
101 #endif /* _HIMALAYA_GPIO_H_ */