Hi, * Daniel Willmann daniel@totalueberwachung.de [2010-05-17 11:48]:
For now just copied over the compal_e88 init.c and adapted the RF frontend functions. For osmocon to work with the GSM download cable SERCOMM_UART_NR and CONS_UART_NR need to be switched.
[...]
+/* describe how the RF frontend is wired on the Openmoko GTA0x boards */
+#define RITA_RESET TSPACT(0) /* Reset of the Rita TRF6151 */ +#define PA_ENABLE TSPACT(9) /* Enable the Power Amplifier */ +#define GSM_TX TSPACT(3) /* PA GSM switch, low-active */
+/* All VCn controls are low-active */ +#define ASM_VC1 TSPACT(2) /* Antenna switch VC1 */ +#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 */
+/* switch RF Frontend Mode */ +void rffe_mode(enum gsm_band band, int tx) +{
- uint16_t tspact = tsp_act_state();
- /* First we mask off all bits from the state cache */
- tspact &= ~PA_ENABLE;
- tspact |= GSM_TXEN; /* low-active */
[...] I'm not sure what the correct value is in this case but GSM_TXEN is not defined at this point.
Cheers Nico
Hi,
Nico Golde wrote:
I'm not sure what the correct value is in this case but GSM_TXEN is not defined at this point.
Yes, just noticed it, too, currently preparing osmocon patches and will commit that to my branch today.
diff --git a/src/target/firmware/board/common/rffe_gta0x_triband.c b/src/target/firmware/board/common/rffe_gta0x_triband.c index 63003d4..6406f04 100644 --- a/src/target/firmware/board/common/rffe_gta0x_triband.c +++ b/src/target/firmware/board/common/rffe_gta0x_triband.c @@ -11,7 +11,7 @@
#define RITA_RESET TSPACT(0) /* Reset of the Rita TRF6151 */ #define PA_ENABLE TSPACT(9) /* Enable the Power Amplifier */ -#define GSM_TX TSPACT(3) /* PA GSM switch, low-active */ +#define GSM_TXEN TSPACT(3) /* PA GSM switch, low-active */
/* All VCn controls are low-active */ #define ASM_VC1 TSPACT(2) /* Antenna switch VC1 */
-- Regards, Steve
Hi,
On Mon, 17 May 2010 16:12:39 +0200 Steve Markgraf steve@steve-m.de wrote:
Nico Golde wrote:
I'm not sure what the correct value is in this case but GSM_TXEN is not defined at this point.
Yes, just noticed it, too, currently preparing osmocon patches and will commit that to my branch today.
sorry, must have been too late for last minute cleanup. Thanks for fixing it.
Regards, Daniel Willmann
Hi Steve,
On Mon, May 17, 2010 at 04:12:39PM +0200, Steve Markgraf wrote:
I'm not sure what the correct value is in this case but GSM_TXEN is not defined at this point.
Yes, just noticed it, too, currently preparing osmocon patches and will commit that to my branch today.
... and i've merged it to master now.
baseband-devel@lists.osmocom.org