summaryrefslogtreecommitdiff
path: root/include/soc/sprd/__board-tizenz3_3g.h
blob: cc0fe16f5efa76ec1b32abf43d0b871f2e09d4fc (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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
 * 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_SCX35GA_H__
#define __GPIO_SCX35GA_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_IF_PMIC_SDA 159
#define GPIO_IF_PMIC_SCL 160
#define GPIO_IF_PMIC_IRQ 161
#define GPIO_FUELGAUGE_SCL 65
#define GPIO_FUELGAUGE_SDA 66
#define GPIO_FUELGAUGE_ALERT 153
#define GPIO_MUIC_SDA	150
#define GPIO_MUIC_SCL	151
#define GPIO_MUIC_IRQ	152

#define GPIO_SENSOR_RESET        186//41
#define GPIO_SUB_SENSOR_RESET  238
#define GPIO_MAIN_SENSOR_PWN     188//42
#define GPIO_SUB_SENSOR_PWN      187//43
#define CAM_FLASH_ENF_GPIO		81
#define CAM_FLASH_ENT_GPIO		82
#define SPRD_FLASH_ON			1
#define SPRD_FLASH_OFF			0
#define GPIO_TOUCHKEY_LED_EN	 116

#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     239
#define HEADSET_DETECT_GPIO     237
#define HEADSET_SWITCH_GPIO     0
#define HEADSET_AMP_GPIO		131
#define HEADSET_EXT_MICBIAS_GPIO		123

#define HEADSET_IRQ_TRIGGER_LEVEL_DETECT 0
#define HEADSET_IRQ_TRIGGER_LEVEL_BUTTON 0

#define HEADSET_ADC_MIN_KEY_MEDIA 0
#define HEADSET_ADC_MAX_KEY_MEDIA 190
#define HEADSET_ADC_MIN_KEY_VOLUMEUP 191
#define HEADSET_ADC_MAX_KEY_VOLUMEUP 347
#define HEADSET_ADC_MIN_KEY_VOLUMEDOWN 348
#define HEADSET_ADC_MAX_KEY_VOLUMEDOWN 760
#define HEADSET_ADC_THRESHOLD_3POLE_DETECT 1170
#define HEADSET_ADC_THRESHOLD_4POLE_DETECT 2700
#define HEADSET_IRQ_THRESHOLD_BUTTON 1
#define HEADSET_HEADMICBIAS_VOLTAGE 3000000


#define SPI0_BACKLIGHT_EN_GPIO 214
#define SPI0_BACKLIGHT_PWM_GPIO 234

#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_WIFI_IRQ		148
#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_SIZE            (52 * SZ_1M)
#define SPRD_ION_OVERLAY_SIZE    (7 * SZ_1M)

#endif