summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-11-09 19:17:48 +0100
committerHarald Welte <laforge@gnumonks.org>2010-11-09 19:17:48 +0100
commit7a81d8777a84f3be0d5615c0464f486aa504e561 (patch)
tree993247271ff65ac907c2e40274249034c456e8f1 /src
parentfed69cd4a0c0fd839f16ca975f72f42baaaf86b0 (diff)
add definitions for sciphone G2
Diffstat (limited to 'src')
-rw-r--r--src/target/firmware/include/mtk/bpi.h2
-rw-r--r--src/target/firmware/include/mtk/mt6235_sciphone_g2.h38
2 files changed, 40 insertions, 0 deletions
diff --git a/src/target/firmware/include/mtk/bpi.h b/src/target/firmware/include/mtk/bpi.h
index 7328c156..8aa8ee54 100644
--- a/src/target/firmware/include/mtk/bpi.h
+++ b/src/target/firmware/include/mtk/bpi.h
@@ -7,6 +7,8 @@
#define BPI_BUF(n) (BPI_BUF0 + ((n) * 4))
+#define MTK_BPI(n) (n)
+
enum mtk_bpi_reg {
BPI_CON = 0x0000,
BPI_BUF0 = 0x0004,
diff --git a/src/target/firmware/include/mtk/mt6235_sciphone_g2.h b/src/target/firmware/include/mtk/mt6235_sciphone_g2.h
new file mode 100644
index 00000000..74d9e7b8
--- /dev/null
+++ b/src/target/firmware/include/mtk/mt6235_sciphone_g2.h
@@ -0,0 +1,38 @@
+#ifndef _SCIPHONE_G2_H
+#define _SCIPHONE_G2_H
+/* Bluelans Sciphone G2 support */
+
+/* Use of the Baseband Parallel Interface by the G2 board */
+#define HB_TX MTK_BPI(0)
+#define PCS_RX MTK_BPI(1)
+#define LB_TX MTK_BPI(2)
+#define PA_EN MTK_BPI(4)
+#define BAND_SW MTK_BPI(5)
+#define MODE_PA MTK_BPI(7)
+#define RF_VCO_EN MTK_BPI(9)
+
+#define GPIO_GPS_PWR_EN MTK_GPIO(19)
+#define GPIO_WIFI_EN MTK_GPIO(20)
+#define GPIO_OP1_EN MTK_GPIO(22)
+#define GPIO_BT_PWR_EN MTK_GPIO(39)
+#define GPIO_BT_RST MTK_GPIO(62)
+#define GPIO_USB_CHR_ID MTK_GPIO(73)
+#define GPIO_FM_SCL MTK_GPIO(46)
+#define GPIO_FM_SDA MTK_GPIO(47)
+#define GPIO_GS_SCL MTK_GPIO(48)
+#define GPIO_GS_SDA MTK_GPIO(58)
+#define GPIO_GS_EN MTK_GPIO(26)
+
+#define GPIO_GPS_EINT MTK_GPIO(42)
+
+#define EINT_HEADSET MTK_EINT(0)
+#define EINT_BT MTK_EINT(1)
+#define EINT_GPS2GSM MTK_EINT(2)
+#define EINT_WIFI MTK_EINT(3)
+
+#define CLKM_BT_32k MTK_CLKM(2)
+#define CLKM_WIFI_32k MTK_CLKM(3)
+#define CLKM_FM_32k MTK_CLKM(4)
+
+
+#endif /* _SCIPHONE_G2_H */