summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2011-01-24 16:48:56 +0100
committerSteve Markgraf <steve@steve-m.de>2011-01-24 16:48:56 +0100
commitcb8b1983755a415eaeb58b74ab8f02e93c87ea99 (patch)
treee52fb4f8306fda6e3dbf3baf00cb3002eb1e627b /src/target/firmware/board
parent66de91f3a8b1a48b08365a164b6e304ddb50f8eb (diff)
target/fw: set the TRF6151 tsp IDs from the rffe initialization
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/target/firmware/board')
-rw-r--r--src/target/firmware/board/common/rffe_gta0x_triband.c9
-rw-r--r--src/target/firmware/board/compal/rffe_dualband.c9
2 files changed, 14 insertions, 4 deletions
diff --git a/src/target/firmware/board/common/rffe_gta0x_triband.c b/src/target/firmware/board/common/rffe_gta0x_triband.c
index a21cc612..cbfccd1c 100644
--- a/src/target/firmware/board/common/rffe_gta0x_triband.c
+++ b/src/target/firmware/board/common/rffe_gta0x_triband.c
@@ -23,8 +23,8 @@
#define ASM_VC2 TSPACT(1) /* Antenna switch VC2 */
#define ASM_VC3 TSPACT(4) /* Antenna switch VC3 */
-#define IOTA_STROBE TSPEN0 /* Strobe for the Iota TSP */
-#define RITA_STROBE TSPEN2 /* Strobe for the Rita TSP */
+#define IOTA_STROBE TSPEN(0) /* Strobe for the Iota TSP */
+#define RITA_STROBE TSPEN(2) /* Strobe for the Rita TSP */
/* switch RF Frontend Mode */
void rffe_mode(enum gsm_band band, int tx)
@@ -73,6 +73,11 @@ void rffe_init(void)
reg = readw(MCU_SW_TRACE);
reg &= ~(1 << 1); /* TSPACT9 I/O function, not MAS(1) */
writew(reg, MCU_SW_TRACE);
+
+ /* Configure the TSPEN which is connected to the TWL3025 */
+ tsp_setup(IOTA_STROBE, 1, 0, 0);
+
+ trf6151_init(RITA_STROBE, RITA_RESET);
}
uint8_t rffe_get_gain(void)
diff --git a/src/target/firmware/board/compal/rffe_dualband.c b/src/target/firmware/board/compal/rffe_dualband.c
index bfd3d98e..a0e03379 100644
--- a/src/target/firmware/board/compal/rffe_dualband.c
+++ b/src/target/firmware/board/compal/rffe_dualband.c
@@ -19,8 +19,8 @@
#define TRENA TSPACT(6) /* Transmit Enable (Antenna Switch) */
#define GSM_TXEN TSPACT(8) /* GSM (as opposed to DCS) Transmit */
-#define IOTA_STROBE TSPEN0 /* Strobe for the Iota TSP */
-#define RITA_STROBE TSPEN2 /* Strobe for the Rita TSP */
+#define IOTA_STROBE TSPEN(0) /* Strobe for the Iota TSP */
+#define RITA_STROBE TSPEN(2) /* Strobe for the Rita TSP */
/* switch RF Frontend Mode */
void rffe_mode(enum gsm_band band, int tx)
@@ -58,6 +58,11 @@ void rffe_init(void)
reg = readw(MCU_SW_TRACE);
reg &= ~(1 << 5); /* TSPACT8 I/O function, not nMREQ */
writew(reg, MCU_SW_TRACE);
+
+ /* Configure the TSPEN which is connected to the TWL3025 */
+ tsp_setup(IOTA_STROBE, 1, 0, 0);
+
+ trf6151_init(RITA_STROBE, RITA_RESET);
}
uint8_t rffe_get_gain(void)