sync hh.org
[hh.org.git] / include / asm-arm / arch-pxa / htcblueangel-gpio.h
blobeb87cc1db12512381745eaf17bf1f8941eab79e8
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 _BLUEANGEL_GPIO_H_
18 #define _BLUEANGEL_GPIO_H_
20 #define GPIO_NR_BLUEANGEL_POWER_BUTTON_N 0
21 #define GPIO_NR_BLUEANGEL_WARM_RST_N 1
22 #define GPIO_NR_BLUEANGEL_TSC2200_KB_N 2
23 #define GPIO_NR_BLUEANGEL_ASIC3_IRQ 3
24 #define GPIO_NR_BLUEANGEL_GSM_ALERTING 6
25 #define GPIO_NR_BLUEANGEL_USB_DETECT_N 8
26 #define GPIO_NR_BLUEANGEL_SD_IRQ_N 11
27 #define GPIO_NR_BLUEANGEL_TSC2200_IRQ_N 16
28 #define GPIO_NR_BLUEANGEL_BOARDID3 21
29 #define GPIO_NR_BLUEANGEL_BOARDID0 66
30 #define GPIO_NR_BLUEANGEL_BOARDID1 67
31 #define GPIO_NR_BLUEANGEL_DPRAM_RX_FULL_N 68
32 #define GPIO_NR_BLUEANGEL_DPRAM_TX_EMPTY_N 69
33 #define GPIO_NR_BLUEANGEL_BOARDID2 76
35 #define GPIO_NR_BLUEANGEL_WLAN_IRQ_N 17 /* Blueangel seem to use GPIO 17 for wireless IRQ */
36 //#define GPIO_NR_BLUEANGEL_WLAN_IRQ2 75
38 #define IRQ_NR_BLUEANGEL_POWER_BUTTON IRQ_GPIO(GPIO_NR_BLUEANGEL_POWER_BUTTON_N)
39 #define IRQ_NR_BLUEANGEL_TSC2200_KB IRQ_GPIO(GPIO_NR_BLUEANGEL_TSC2200_KB_N)
40 #define IRQ_NR_BLUEANGEL_ASIC3 IRQ_GPIO(GPIO_NR_BLUEANGEL_ASIC3_IRQ)
41 #define IRQ_NR_BLUEANGEL_GSM_ALERTING IRQ_GPIO(GPIO_NR_BLUEANGEL_GSM_ALERTING)
42 #define IRQ_NR_BLUEANGEL_RX_FULL IRQ_GPIO(GPIO_NR_BLUEANGEL_DPRAM_RX_FULL_N)
43 #define IRQ_NR_BLUEANGEL_TX_EMPTY IRQ_GPIO(GPIO_NR_BLUEANGEL_DPRAM_TX_EMPTY_N)
44 #define IRQ_NR_BLUEANGEL_WLAN IRQ_GPIO(GPIO_NR_BLUEANGEL_WLAN_IRQ_N)
45 #define IRQ_NR_BLUEANGEL_TSC2200_TS IRQ_GPIO(GPIO_NR_BLUEANGEL_TSC2200_IRQ_N)
47 #define BLUEANGEL_ASIC3_GPIO_PHYS 0x0c000000
48 #define BLUEANGEL_ASIC3_MMC_PHYS 0x0e000000
50 #endif /* _BLUEANGEL_GPIO_H_ */