blob: f646653be2d1849c6d5f855bf8915a45b6fd8557 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/*
* Copyright (C) 2012 Spreadtrum Communications Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __GPIO_SC8810_H__
#define __GPIO_SC8810_H__
#ifndef __ASM_ARCH_BOARD_H
#error "Don't include this file directly, include <mach/board.h>"
#endif
#define GPIO_TOUCH_RESET 142
#define GPIO_TOUCH_IRQ 141
#define HEADSET_SWITCH_GPIO 237
#define GPIO_SENSOR_RESET 41
#define GPIO_MAIN_SENSOR_PWN 42
#define GPIO_SUB_SENSOR_PWN 43
#define USB_OTG_CABLE_DETECT 72
#define SPRD_FLASH_OFST 0x890
#define SPRD_FLASH_CTRL_BIT 0x8000
#define SPRD_FLASH_LOW_VAL 0x3
#define SPRD_FLASH_HIGH_VAL 0xF
#define SPRD_FLASH_LOW_CUR 110
#define SPRD_FLASH_HIGH_CUR 470
#define EIC_CHARGER_DETECT (A_EIC_START + 2)
#define EIC_KEY_POWER (A_EIC_START + 3)
#define HEADSET_BUTTON_GPIO (A_EIC_START + 4)
#define HEADSET_DETECT_GPIO 139
#define EIC_AUD_HEAD_INST2 (A_EIC_START + 5)
/*fixme */
#define EIC_CHG_CV_STATE (A_EIC_START + 4)
#define EIC_VCHG_OVI (A_EIC_START + 6)
#define GPIO_KEY_VOLUMEDOWN 124
#define GPIO_KEY_VOLUMEUP 125
//#define GPIO_KEY_CAMERA 0
//#define GPIO_KEY_HOME 0
#define HEADSET_IRQ_TRIGGER_LEVEL_DETECT 1
#define HEADSET_IRQ_TRIGGER_LEVEL_BUTTON 1
#define HEADSET_ADC_MIN_KEY_MEDIA 0
#define HEADSET_ADC_MAX_KEY_MEDIA 170
#define HEADSET_ADC_MIN_KEY_VOLUMEUP 171
#define HEADSET_ADC_MAX_KEY_VOLUMEUP 430
#define HEADSET_ADC_MIN_KEY_VOLUMEDOWN 431
#define HEADSET_ADC_MAX_KEY_VOLUMEDOWN 760
#define HEADSET_ADC_THRESHOLD_3POLE_DETECT 100
#define HEADSET_ADC_THRESHOLD_4POLE_DETECT 3100
#define HEADSET_IRQ_THRESHOLD_BUTTON 1
#define HEADSET_HEADMICBIAS_VOLTAGE 3000000
#define SPI0_CMMB_CS_GPIO 32
#define SPI1_WIFI_CS_GPIO 44
#define GPIO_BK 143
#define MSENSOR_DRDY_GPIO 53
#define GPIO_PLSENSOR_IRQ 213
#define GPIO_BT_RESET 194
#define GPIO_WIFI_POWERON 189
#define GPIO_WIFI_RESET 190
#define GPIO_WIFI_IRQ -1
#define GPIO_GPS_ONOFF 174
#define GPIO_SDIO_DETECT 75
#define SPRD_PIN_SDIO0_OFFSET 0x01E0
#define SPRD_PIN_SDIO0_SIZE 7
#define SPRD_PIN_SDIO0_D3_INDEX 0
#define SPRD_PIN_SDIO0_D3_GPIO 100
#define SPRD_PIN_SDIO0_SD_FUNC 0
#define SPRD_PIN_SDIO0_GPIO_FUNC 3
#endif
|