sync hh.org
[hh.org.git] / include / asm-arm / arch-pxa / hx2750.h
blob0d6f16b9f5676ec9cfec2a9c41a11d53a8b11b61
1 /*
2 * Hardware specific definitions for iPAQ hx2750
4 * Copyright 2005 Openedhand Ltd.
6 * Author: Richard Purdie <richard@o-hand.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifndef __ASM_ARCH_HX2750_H
14 #define __ASM_ARCH_HX2750_H 1
17 * HX2750 (Non Standard) GPIO Definitions
20 #define HX2750_GPIO_KEYPWR (0) /* Power button */
21 #define HX2750_GPIO_BATTCOVER1 (9) /* Battery Cover Switch */
22 #define HX2750_GPIO_CF_IRQ (11) /* CF IRQ? */
23 #define HX2750_GPIO_USBCONNECT (12) /* USB Connected? */
24 #define HX2750_GPIO_CF_DETECT (13) /* CF Card Detect? */
25 #define HX2750_GPIO_EXTPWR (14) /* External Power Detect */
26 #define HX2750_GPIO_BATLVL (15) /* Battery Level Detect */
27 #define HX2750_GPIO_CF_PWR (17) /* CF Power? */
28 #define HX2750_GPIO_SR_STROBE (18) /* Shift Register Strobe */
29 #define HX2750_GPIO_CHARGE (22) /* Charging Enable (active low) */
30 #define HX2750_GPIO_TSC2101_SS (24) /* TSC2101 SS# */
31 #define HX2750_GPIO_BTPWR (27) /* Bluetooth Power? */
32 #define HX2750_GPIO_BATTCOVER2 (33) /* Battery Cover Switch */
33 #define HX2750_GPIO_SD_DETECT (38) /* MMC Card Detect */
34 #define HX2750_GPIO_SR_CLK1 (52) /* Shift Register Clock */
35 #define HX2750_GPIO_SR_CLK2 (53)
36 #define HX2750_GPIO_CF_WIFIIRQ (54) /* CF Wifi IRQ? */
37 #define HX2750_GPIO_GPIO_DIN (88) /* Shift Register Data */
38 #define HX2750_GPIO_KEYLEFT (90) /* Left button */
39 #define HX2750_GPIO_KEYRIGHT (91) /* Right button */
40 #define HX2750_GPIO_KEYCAL (93) /* Calander button */
41 #define HX2750_GPIO_KEYTASK (94) /* Task button */
42 #define HX2750_GPIO_KEYSIDE (95) /* Side button */
43 #define HX2750_GPIO_KEYENTER (96) /* Enter Button*/
44 #define HX2750_GPIO_KEYCON (97) /* Contacts button */
45 #define HX2750_GPIO_KEYMAIL (98) /* Mail button */
46 #define HX2750_GPIO_BIOPWR (99) /* BIO Reader Power? */
47 #define HX2750_GPIO_KEYUP (100) /* Up button */
48 #define HX2750_GPIO_KEYDOWN (101) /* Down button*/
49 #define HX2750_GPIO_SD_READONLY (103) /* MMC/SD Write Protection */
50 #define HX2750_GPIO_LEDMAIL (106) /* Green Mail LED */
51 #define HX2750_GPIO_HP_JACK (108) /* Head Phone Jack Present */
52 #define HX2750_GPIO_PENDOWN (117) /* Touch Screen Pendown */
55 //#define HX2750_GPIO_ () /* */
58 * HX2750 Interrupts
60 #define HX2750_IRQ_GPIO_EXTPWR IRQ_GPIO(HX2750_GPIO_EXTPWR)
61 #define HX2750_IRQ_GPIO_SD_DETECT IRQ_GPIO(HX2750_GPIO_SD_DETECT)
62 #define HX2750_IRQ_GPIO_PENDOWN IRQ_GPIO(HX2750_GPIO_PENDOWN)
63 #define HX2750_IRQ_GPIO_CF_DETECT IRQ_GPIO(HX2750_GPIO_CF_DETECT)
64 #define HX2750_IRQ_GPIO_CF_IRQ IRQ_GPIO(HX2750_GPIO_CF_IRQ)
65 #define HX2750_IRQ_GPIO_CF_WIFIIRQ IRQ_GPIO(HX2750_GPIO_CF_WIFIIRQ)
68 * HX2750 Extra GPIO Definitions
71 #define HX2750_EGPIO_WIFI_PWR (1 << 11) /* Triggers gpio 54 - Wifi enable? */
72 #define HX2750_EGPIO_LCD_PWR (1 << 10) /* LCD Power */
73 #define HX2750_EGPIO_BL_PWR (1 << 9) /* Backlight LED Power */
74 #define HX2750_EGPIO_8 (1 << 8) /* */
75 #define HX2750_EGPIO_7 (1 << 7) /* */
76 #define HX2750_EGPIO_SD_PWR (1 << 6) /* SD Power? */
77 #define HX2750_EGPIO_TSC_PWR (1 << 5) /* TS Power */
78 #define HX2750_EGPIO_4 (1 << 4) /* */
79 #define HX2750_EGPIO_CF1_RESET (1 << 3) /* Triggers gpio 54 - CF1 Reset? */
80 #define HX2750_EGPIO_2 (1 << 2) /* */
81 #define HX2750_EGPIO_1 (1 << 1) /* */
82 #define HX2750_EGPIO_PWRLED (1 << 0) /* Red Power LED */
85 void hx2750_set_egpio(unsigned int gpio);
86 void hx2750_clear_egpio(unsigned int gpio);
89 #endif /* __ASM_ARCH_HX2750_H */