Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * GPIOs and interrupts for Palm Treo smartphones
0004  *
0005  * currently supported:
0006  *     Palm Treo 680 (GSM)
0007  *     Palm Centro 685 (GSM)
0008  *
0009  * Author:     Tomas Cech <sleep_walker@suse.cz>
0010  *
0011  * find more info at www.hackndev.com
0012  */
0013 
0014 #ifndef _INCLUDE_TREO_H_
0015 #define _INCLUDE_TREO_H_
0016 
0017 /* GPIOs */
0018 #define GPIO_NR_TREO_POWER_DETECT   0
0019 #define GPIO_NR_TREO_AMP_EN     27
0020 #define GPIO_NR_TREO_GREEN_LED  20
0021 #define GPIO_NR_TREO_RED_LED        79
0022 #define GPIO_NR_TREO_SD_DETECT_N    113
0023 #define GPIO_NR_TREO_EP_DETECT_N    116
0024 #define GPIO_NR_TREO_USB_DETECT 1
0025 #define GPIO_NR_TREO_USB_PULLUP 114
0026 #define GPIO_NR_TREO_GSM_POWER  40
0027 #define GPIO_NR_TREO_GSM_RESET  87
0028 #define GPIO_NR_TREO_GSM_WAKE   57
0029 #define GPIO_NR_TREO_GSM_HOST_WAKE  14
0030 #define GPIO_NR_TREO_GSM_TRIGGER    10
0031 #define GPIO_NR_TREO_IR_EN      115
0032 #define GPIO_NR_TREO_IR_TXD     47
0033 #define GPIO_NR_TREO_BL_POWER   38
0034 #define GPIO_NR_TREO_LCD_POWER  25
0035 
0036 /* Treo680 specific GPIOs */
0037 #define GPIO_NR_TREO680_SD_READONLY 33
0038 #define GPIO_NR_TREO680_SD_POWER    42
0039 #define GPIO_NR_TREO680_VIBRATE_EN  44
0040 #define GPIO_NR_TREO680_KEYB_BL     24
0041 #define GPIO_NR_TREO680_BT_EN       43
0042 #define GPIO_NR_TREO680_LCD_POWER   77
0043 #define GPIO_NR_TREO680_LCD_EN      86
0044 #define GPIO_NR_TREO680_LCD_EN_N    25
0045 
0046 /* Centro685 specific GPIOs */
0047 #define GPIO_NR_CENTRO_SD_POWER     21
0048 #define GPIO_NR_CENTRO_VIBRATE_EN   22
0049 #define GPIO_NR_CENTRO_KEYB_BL      33
0050 #define GPIO_NR_CENTRO_BT_EN        80
0051 
0052 /* Various addresses  */
0053 #define TREO_PHYS_RAM_START 0xa0000000
0054 #define TREO_PHYS_IO_START  0x40000000
0055 #define TREO_STR_BASE   0xa2000000
0056 
0057 /* BACKLIGHT */
0058 #define TREO_MAX_INTENSITY      254
0059 #define TREO_DEFAULT_INTENSITY  160
0060 #define TREO_LIMIT_MASK     0x7F
0061 #define TREO_PRESCALER      63
0062 #define TREO_PERIOD_NS      3500
0063 
0064 #endif