blob: c4b3f6cdc1186db3013ce0d038205a9bbd7e5ee1 (
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
/*
* 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_SCX30G_sp7720ea_H__
#define __GPIO_SCX30G_sp7720ea_H__
#ifndef __ASM_ARCH_BOARD_H
#error "Don't include this file directly, include <mach/board.h>"
#endif
#define GPIO_TOUCH_RESET 81
#define GPIO_TOUCH_IRQ 82
#define GPIO_SENSOR_RESET 186//41
#define GPIO_MAIN_SENSOR_PWN 187//42
#define GPIO_SUB_SENSOR_PWN 188//43
#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 USB_OTG_CABLE_DETECT 72
#define EIC_CHARGER_DETECT (A_EIC_START + 0)
#define EIC_POWER_PBINT2 (A_EIC_START + 1)
#define EIC_POWER_PBINT (A_EIC_START + 2)
#define EIC_AUD_HEAD_BUTTON (A_EIC_START + 3)
#define EIC_CHG_CV_STATE (A_EIC_START + 4)
#define EIC_AUD_HEAD_INST (A_EIC_START + 5)
#define EIC_VCHG_OVI (A_EIC_START + 6)
#define EIC_VBAT_OVI (A_EIC_START + 7)
#define EIC_AUD_HEAD_INST2 (A_EIC_START + 8)
#define EIC_KEY_POWER (EIC_POWER_PBINT)
#define HEADSET_BUTTON_GPIO (EIC_AUD_HEAD_BUTTON)
#define HEADSET_DETECT_GPIO (EIC_AUD_HEAD_INST2)
#define HEADSET_SWITCH_GPIO 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 156
#define SPI1_WIFI_CS_GPIO 44
#define GPIO_BK 136
#define GPIO_CMMB_RESET 144
#define GPIO_CMMB_INT 143
#define GPIO_CMMB_26M_CLK_EN 197
#define GPIO_BT_RESET 233
#define GPIO_BT_POWER 231
#define GPIO_BT2AP_WAKE 232
#define GPIO_AP2BT_WAKE 235
#define GPIO_WIFI_SHUTDOWN 230
#define GPIO_WIFI_IRQ 234
#define GPIO_PROX_INT 216
#define GPIO_GYRO_INT1 163
#define GPIO_M_RSTN 161
#define GPIO_M_DRDY 164
#define GPIO_SDIO_DETECT 75
#define SPRD_PIN_SDIO0_OFFSET 0x0184
#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
/* ION config info
LCD:
960x540
Video Playing:
1080p 8 ref-frame
Video Recording:
720p
Camera:
8M, support ZSL, support preview/capture rotation
*/
#define SPRD_ION_MM_SIZE (52 * SZ_1M)
#define SPRD_ION_OVERLAY_SIZE (4 * SZ_1M)
#endif
|