]>
Commit | Line | Data |
---|---|---|
54088bf5 MV |
1 | /* |
2 | * GPIOs and interrupts for Palm Tungsten|E2 Handheld Computer | |
3 | * | |
4 | * Author: | |
5 | * Carlos Eduardo Medaglia Dyonisio <cadu@nerdfeliz.com> | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 as | |
9 | * published by the Free Software Foundation. | |
10 | * | |
11 | */ | |
12 | ||
13 | #ifndef _INCLUDE_PALMTE2_H_ | |
14 | #define _INCLUDE_PALMTE2_H_ | |
15 | ||
16 | /** HERE ARE GPIOs **/ | |
17 | ||
18 | /* GPIOs */ | |
8c8aa5fa MV |
19 | #define GPIO_NR_PALMTE2_POWER_DETECT 9 |
20 | #define GPIO_NR_PALMTE2_HOTSYNC_BUTTON_N 4 | |
21 | #define GPIO_NR_PALMTE2_EARPHONE_DETECT 15 | |
22 | ||
23 | /* SD/MMC */ | |
54088bf5 MV |
24 | #define GPIO_NR_PALMTE2_SD_DETECT_N 10 |
25 | #define GPIO_NR_PALMTE2_SD_POWER 55 | |
26 | #define GPIO_NR_PALMTE2_SD_READONLY 51 | |
27 | ||
8c8aa5fa MV |
28 | /* IRDA - disable GPIO connected to SD pin of tranceiver (TFBS4710?) ? */ |
29 | #define GPIO_NR_PALMTE2_IR_DISABLE 48 | |
30 | ||
31 | /* USB */ | |
32 | #define GPIO_NR_PALMTE2_USB_DETECT_N 35 | |
33 | #define GPIO_NR_PALMTE2_USB_PULLUP 53 | |
34 | ||
35 | /* LCD/BACKLIGHT */ | |
36 | #define GPIO_NR_PALMTE2_BL_POWER 56 | |
37 | #define GPIO_NR_PALMTE2_LCD_POWER 37 | |
38 | ||
54088bf5 MV |
39 | /* KEYS */ |
40 | #define GPIO_NR_PALMTE2_KEY_NOTES 5 | |
41 | #define GPIO_NR_PALMTE2_KEY_TASKS 7 | |
42 | #define GPIO_NR_PALMTE2_KEY_CALENDAR 11 | |
43 | #define GPIO_NR_PALMTE2_KEY_CONTACTS 13 | |
44 | #define GPIO_NR_PALMTE2_KEY_CENTER 14 | |
45 | #define GPIO_NR_PALMTE2_KEY_LEFT 19 | |
46 | #define GPIO_NR_PALMTE2_KEY_RIGHT 20 | |
47 | #define GPIO_NR_PALMTE2_KEY_DOWN 21 | |
48 | #define GPIO_NR_PALMTE2_KEY_UP 22 | |
49 | ||
50 | /** HERE ARE INIT VALUES **/ | |
51 | ||
52 | /* BACKLIGHT */ | |
53 | #define PALMTE2_MAX_INTENSITY 0xFE | |
54 | #define PALMTE2_DEFAULT_INTENSITY 0x7E | |
55 | #define PALMTE2_LIMIT_MASK 0x7F | |
56 | #define PALMTE2_PRESCALER 0x3F | |
57 | #define PALMTE2_PERIOD_NS 3500 | |
58 | ||
8c8aa5fa MV |
59 | /* BATTERY */ |
60 | #define PALMTE2_BAT_MAX_VOLTAGE 4000 /* 4.00v current voltage */ | |
61 | #define PALMTE2_BAT_MIN_VOLTAGE 3550 /* 3.55v critical voltage */ | |
62 | #define PALMTE2_BAT_MAX_CURRENT 0 /* unknokn */ | |
63 | #define PALMTE2_BAT_MIN_CURRENT 0 /* unknown */ | |
64 | #define PALMTE2_BAT_MAX_CHARGE 1 /* unknown */ | |
65 | #define PALMTE2_BAT_MIN_CHARGE 1 /* unknown */ | |
66 | #define PALMTE2_MAX_LIFE_MINS 360 /* on-life in minutes */ | |
67 | ||
54088bf5 | 68 | #endif |