diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-12-09 02:24:25 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-09 02:24:57 -0500 |
commit | 4c68db38c85188824b21698842b42a62b4f78657 (patch) | |
tree | 3ee1c3b22af6713adf669a3bb452ce82bc7fe495 /arch/arm/mach-pxa/include/mach/palmtreo.h | |
parent | 5c0e9f28da84c68ce0ae68b7a75faaf862e156e2 (diff) | |
parent | 2b876f95d03e226394b5d360c86127cbefaf614b (diff) |
Merge branch 'linus' into x86/urgent
Merge reason: We want to queue up a dependent patch.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/arm/mach-pxa/include/mach/palmtreo.h')
-rw-r--r-- | arch/arm/mach-pxa/include/mach/palmtreo.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/include/mach/palmtreo.h b/arch/arm/mach-pxa/include/mach/palmtreo.h new file mode 100644 index 000000000000..2d3f14e3be29 --- /dev/null +++ b/arch/arm/mach-pxa/include/mach/palmtreo.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * GPIOs and interrupts for Palm Treo smartphones | ||
3 | * | ||
4 | * currently supported: | ||
5 | * Palm Treo 680 (GSM) | ||
6 | * Palm Centro 685 (GSM) | ||
7 | * | ||
8 | * Author: Tomas Cech <sleep_walker@suse.cz> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | * | ||
14 | * find more info at www.hackndev.com | ||
15 | * | ||
16 | */ | ||
17 | |||
18 | #ifndef _INCLUDE_TREO_H_ | ||
19 | #define _INCLUDE_TREO_H_ | ||
20 | |||
21 | /* GPIOs */ | ||
22 | #define GPIO_NR_TREO_POWER_DETECT 0 | ||
23 | #define GPIO_NR_TREO_AMP_EN 27 | ||
24 | #define GPIO_NR_TREO_GREEN_LED 20 | ||
25 | #define GPIO_NR_TREO_RED_LED 79 | ||
26 | #define GPIO_NR_TREO_SD_DETECT_N 113 | ||
27 | #define GPIO_NR_TREO_EP_DETECT_N 116 | ||
28 | #define GPIO_NR_TREO_USB_DETECT 1 | ||
29 | #define GPIO_NR_TREO_USB_PULLUP 114 | ||
30 | #define GPIO_NR_TREO_GSM_POWER 40 | ||
31 | #define GPIO_NR_TREO_GSM_RESET 87 | ||
32 | #define GPIO_NR_TREO_GSM_WAKE 57 | ||
33 | #define GPIO_NR_TREO_GSM_HOST_WAKE 14 | ||
34 | #define GPIO_NR_TREO_GSM_TRIGGER 10 | ||
35 | #define GPIO_NR_TREO_IR_EN 115 | ||
36 | #define GPIO_NR_TREO_IR_TXD 47 | ||
37 | #define GPIO_NR_TREO_BL_POWER 38 | ||
38 | #define GPIO_NR_TREO_LCD_POWER 25 | ||
39 | |||
40 | /* Treo680 specific GPIOs */ | ||
41 | #ifdef CONFIG_MACH_TREO680 | ||
42 | #define GPIO_NR_TREO680_SD_READONLY 33 | ||
43 | #define GPIO_NR_TREO680_SD_POWER 42 | ||
44 | #define GPIO_NR_TREO680_VIBRATE_EN 44 | ||
45 | #define GPIO_NR_TREO680_KEYB_BL 24 | ||
46 | #define GPIO_NR_TREO680_BT_EN 43 | ||
47 | #endif /* CONFIG_MACH_TREO680 */ | ||
48 | |||
49 | /* Centro685 specific GPIOs */ | ||
50 | #define GPIO_NR_CENTRO_SD_POWER 21 | ||
51 | #define GPIO_NR_CENTRO_VIBRATE_EN 22 | ||
52 | #define GPIO_NR_CENTRO_KEYB_BL 33 | ||
53 | #define GPIO_NR_CENTRO_BT_EN 80 | ||
54 | |||
55 | /* Various addresses */ | ||
56 | #define TREO_PHYS_RAM_START 0xa0000000 | ||
57 | #define TREO_PHYS_IO_START 0x40000000 | ||
58 | #define TREO_STR_BASE 0xa2000000 | ||
59 | |||
60 | /* BACKLIGHT */ | ||
61 | #define TREO_MAX_INTENSITY 254 | ||
62 | #define TREO_DEFAULT_INTENSITY 160 | ||
63 | #define TREO_LIMIT_MASK 0x7F | ||
64 | #define TREO_PRESCALER 63 | ||
65 | #define TREO_PERIOD_NS 3500 | ||
66 | |||
67 | #endif | ||