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