Merge tag 'fs.close_range.v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / arch / arm / mach-pxa / palmtreo.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * GPIOs and interrupts for Palm Treo smartphones
4  *
5  * currently supported:
6  *     Palm Treo 680 (GSM)
7  *     Palm Centro 685 (GSM)
8  *
9  * Author:     Tomas Cech <sleep_walker@suse.cz>
10  *
11  * find more info at www.hackndev.com
12  */
13
14 #ifndef _INCLUDE_TREO_H_
15 #define _INCLUDE_TREO_H_
16
17 /* GPIOs */
18 #define GPIO_NR_TREO_POWER_DETECT       0
19 #define GPIO_NR_TREO_AMP_EN             27
20 #define GPIO_NR_TREO_GREEN_LED  20
21 #define GPIO_NR_TREO_RED_LED            79
22 #define GPIO_NR_TREO_SD_DETECT_N        113
23 #define GPIO_NR_TREO_EP_DETECT_N        116
24 #define GPIO_NR_TREO_USB_DETECT 1
25 #define GPIO_NR_TREO_USB_PULLUP 114
26 #define GPIO_NR_TREO_GSM_POWER  40
27 #define GPIO_NR_TREO_GSM_RESET  87
28 #define GPIO_NR_TREO_GSM_WAKE   57
29 #define GPIO_NR_TREO_GSM_HOST_WAKE      14
30 #define GPIO_NR_TREO_GSM_TRIGGER        10
31 #define GPIO_NR_TREO_IR_EN              115
32 #define GPIO_NR_TREO_IR_TXD             47
33 #define GPIO_NR_TREO_BL_POWER   38
34 #define GPIO_NR_TREO_LCD_POWER  25
35
36 /* Treo680 specific GPIOs */
37 #define GPIO_NR_TREO680_SD_READONLY     33
38 #define GPIO_NR_TREO680_SD_POWER        42
39 #define GPIO_NR_TREO680_VIBRATE_EN      44
40 #define GPIO_NR_TREO680_KEYB_BL         24
41 #define GPIO_NR_TREO680_BT_EN           43
42 #define GPIO_NR_TREO680_LCD_POWER       77
43 #define GPIO_NR_TREO680_LCD_EN          86
44 #define GPIO_NR_TREO680_LCD_EN_N        25
45
46 /* Centro685 specific GPIOs */
47 #define GPIO_NR_CENTRO_SD_POWER         21
48 #define GPIO_NR_CENTRO_VIBRATE_EN       22
49 #define GPIO_NR_CENTRO_KEYB_BL          33
50 #define GPIO_NR_CENTRO_BT_EN            80
51
52 /* Various addresses  */
53 #define TREO_PHYS_RAM_START     0xa0000000
54 #define TREO_PHYS_IO_START      0x40000000
55 #define TREO_STR_BASE   0xa2000000
56
57 /* BACKLIGHT */
58 #define TREO_MAX_INTENSITY              254
59 #define TREO_DEFAULT_INTENSITY  160
60 #define TREO_LIMIT_MASK         0x7F
61 #define TREO_PRESCALER          63
62 #define TREO_PERIOD_NS          3500
63
64 #endif