FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/L1/tpudrv/tpudrv12.c @ 930:5a826938d005
gsm-fw: experimental support for Compal targets in tpudrv12.[ch]
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 31 Oct 2015 02:09:48 +0000 |
parents | a714522c925b |
children |
comparison
equal
deleted
inserted
replaced
929:ad6f1504465d | 930:5a826938d005 |
---|---|
13 * | 13 * |
14 * The present reconstruction has been made by copying tpudrv61.c and | 14 * The present reconstruction has been made by copying tpudrv61.c and |
15 * tweaking it to match the disassembly of the reference binary object | 15 * tweaking it to match the disassembly of the reference binary object |
16 * named above. | 16 * named above. |
17 * | 17 * |
18 * The ugly hacks to support Pirelli DP-L10 in addition to classic | 18 * The ugly hacks to support Compal and Pirelli targets in addition to |
19 * TI/Openmoko target devices are original to FreeCalypso. | 19 * classic TI/Openmoko ones are original to FreeCalypso. |
20 */ | 20 */ |
21 | 21 |
22 #define TPUDRV12_C | 22 #define TPUDRV12_C |
23 | 23 |
24 #include "config.h" | 24 #include "config.h" |
167 UWORD16 limit; | 167 UWORD16 limit; |
168 UWORD16 rf_chip_band; /* from tpudrv12.obj, not in tpudrv61.c */ | 168 UWORD16 rf_chip_band; /* from tpudrv12.obj, not in tpudrv61.c */ |
169 T_TX_RX tx_rx[2]; | 169 T_TX_RX tx_rx[2]; |
170 }; | 170 }; |
171 | 171 |
172 #if CONFIG_TARGET_PIRELLI | 172 #if CONFIG_TARGET_COMPAL || CONFIG_TARGET_PIRELLI |
173 typedef UWORD16 T_RXTX_UPDOWN; | 173 typedef UWORD16 T_RXTX_UPDOWN; |
174 #else | 174 #else |
175 typedef UWORD8 T_RXTX_UPDOWN; | 175 typedef UWORD8 T_RXTX_UPDOWN; |
176 #endif | 176 #endif |
177 | 177 |
578 *TP_Ptr++ = TPU_FAT(0x1352); | 578 *TP_Ptr++ = TPU_FAT(0x1352); |
579 TSP_TO_ABB(0x80); | 579 TSP_TO_ABB(0x80); |
580 *TP_Ptr++ = TPU_FAT(0x1384); | 580 *TP_Ptr++ = TPU_FAT(0x1384); |
581 TSP_TO_ABB(0xA0); | 581 TSP_TO_ABB(0xA0); |
582 *TP_Ptr++ = TPU_FAT(16); | 582 *TP_Ptr++ = TPU_FAT(16); |
583 #if CONFIG_TARGET_PIRELLI | 583 #if CONFIG_TARGET_COMPAL || CONFIG_TARGET_PIRELLI |
584 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF | 584 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF |
585 | RF_SER_ON); | 585 | RF_SER_ON); |
586 *TP_Ptr++ = TPU_MOVE(TSP_ACTX, rf_path[rf_index].tx_up >> 8); | 586 *TP_Ptr++ = TPU_MOVE(TSP_ACTX, rf_path[rf_index].tx_up >> 8); |
587 *TP_Ptr++ = TPU_FAT(21); | 587 *TP_Ptr++ = TPU_FAT(21); |
588 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF | 588 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF |