add definitions for sciphone G2
[osmocom-bb.git] / src / target / firmware / include / mtk / mt6235_sciphone_g2.h
1 #ifndef _SCIPHONE_G2_H
2 #define _SCIPHONE_G2_H
3 /* Bluelans Sciphone G2 support */
4
5 /* Use of the Baseband Parallel Interface by the G2 board */
6 #define HB_TX           MTK_BPI(0)
7 #define PCS_RX          MTK_BPI(1)
8 #define LB_TX           MTK_BPI(2)
9 #define PA_EN           MTK_BPI(4)
10 #define BAND_SW         MTK_BPI(5)
11 #define MODE_PA         MTK_BPI(7)
12 #define RF_VCO_EN       MTK_BPI(9)
13
14 #define GPIO_GPS_PWR_EN MTK_GPIO(19)
15 #define GPIO_WIFI_EN    MTK_GPIO(20)
16 #define GPIO_OP1_EN     MTK_GPIO(22)
17 #define GPIO_BT_PWR_EN  MTK_GPIO(39)
18 #define GPIO_BT_RST     MTK_GPIO(62)
19 #define GPIO_USB_CHR_ID MTK_GPIO(73)
20 #define GPIO_FM_SCL     MTK_GPIO(46)
21 #define GPIO_FM_SDA     MTK_GPIO(47)
22 #define GPIO_GS_SCL     MTK_GPIO(48)
23 #define GPIO_GS_SDA     MTK_GPIO(58)
24 #define GPIO_GS_EN      MTK_GPIO(26)
25
26 #define GPIO_GPS_EINT   MTK_GPIO(42)
27
28 #define EINT_HEADSET    MTK_EINT(0)
29 #define EINT_BT         MTK_EINT(1)
30 #define EINT_GPS2GSM    MTK_EINT(2)
31 #define EINT_WIFI       MTK_EINT(3)
32
33 #define CLKM_BT_32k     MTK_CLKM(2)
34 #define CLKM_WIFI_32k   MTK_CLKM(3)
35 #define CLKM_FM_32k     MTK_CLKM(4)
36
37
38 #endif /* _SCIPHONE_G2_H */