FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/tpu_drivers/source0/tpudrv12.c @ 286:91edaae9d4a6
tpudrv12.c: use #if defined() for Compal/Pirelli support like in Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 15 Mar 2017 02:47:31 +0000 |
parents | 3fd7ac75958d |
children | c24807d0dc36 |
comparison
equal
deleted
inserted
replaced
285:4d9af8de3973 | 286:91edaae9d4a6 |
---|---|
173 UWORD16 limit; | 173 UWORD16 limit; |
174 UWORD16 rf_chip_band; /* from tpudrv12.obj, not in tpudrv61.c */ | 174 UWORD16 rf_chip_band; /* from tpudrv12.obj, not in tpudrv61.c */ |
175 T_TX_RX tx_rx[2]; | 175 T_TX_RX tx_rx[2]; |
176 }; | 176 }; |
177 | 177 |
178 #if CONFIG_TARGET_COMPAL || CONFIG_TARGET_PIRELLI | 178 #if defined(CONFIG_TARGET_COMPAL) || defined(CONFIG_TARGET_PIRELLI) |
179 typedef UWORD16 T_RXTX_UPDOWN; | 179 typedef UWORD16 T_RXTX_UPDOWN; |
180 #else | 180 #else |
181 typedef UWORD8 T_RXTX_UPDOWN; | 181 typedef UWORD8 T_RXTX_UPDOWN; |
182 #endif | 182 #endif |
183 | 183 |
584 *TP_Ptr++ = TPU_FAT(0x1352); | 584 *TP_Ptr++ = TPU_FAT(0x1352); |
585 TSP_TO_ABB(0x80); | 585 TSP_TO_ABB(0x80); |
586 *TP_Ptr++ = TPU_FAT(0x1384); | 586 *TP_Ptr++ = TPU_FAT(0x1384); |
587 TSP_TO_ABB(0xA0); | 587 TSP_TO_ABB(0xA0); |
588 *TP_Ptr++ = TPU_FAT(16); | 588 *TP_Ptr++ = TPU_FAT(16); |
589 #if CONFIG_TARGET_COMPAL || CONFIG_TARGET_PIRELLI | 589 #if defined(CONFIG_TARGET_COMPAL) || defined(CONFIG_TARGET_PIRELLI) |
590 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF | 590 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF |
591 | RF_SER_ON); | 591 | RF_SER_ON); |
592 *TP_Ptr++ = TPU_MOVE(TSP_ACTX, rf_path[rf_index].tx_up >> 8); | 592 *TP_Ptr++ = TPU_MOVE(TSP_ACTX, rf_path[rf_index].tx_up >> 8); |
593 *TP_Ptr++ = TPU_FAT(21); | 593 *TP_Ptr++ = TPU_FAT(21); |
594 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF | 594 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF |