changeset 406:d926a8986755

tpudrv10.c placeholder: all meat disabled in order to compile
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Jan 2018 04:29:50 +0000
parents 909fe8b92b26
children f7f1f6f1a77d
files src/cs/layer1/tpu_drivers/source0/tpudrv10.c
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/layer1/tpu_drivers/source0/tpudrv10.c	Thu Jan 18 02:53:31 2018 +0000
+++ b/src/cs/layer1/tpu_drivers/source0/tpudrv10.c	Thu Jan 18 04:29:50 2018 +0000
@@ -167,6 +167,7 @@
   struct synth_s *synth;
 };
 
+#if 0
 const struct synth_s synth_900[] =
 {
   {  0,  124, BAND_SELECT_GSM, {{ 890,   1}, { 935,   2}}},// gsm    0 - 124
@@ -223,6 +224,7 @@
   /* magic A & B encoding for Rita */
   return((n - 4096) << 3);
 }
+#endif
 
 /*------------------------------------------*/
 /*          Convert_l1_radio_freq           */
@@ -320,6 +322,7 @@
 /*------------------------------------------*/
 WORD32 rf_init(WORD32 t)
 {
+#if 0
 	*TP_Ptr++ = TPU_AT(t);
 	*TP_Ptr++ = TPU_MOVE(TSP_CTRL1, 0x47);
 	t += 5;
@@ -352,6 +355,7 @@
 	*TP_Ptr++ = TPU_AT(t);
 	TSP_TO_RF(0x043D);
 	t += 7;
+#endif
 	return(t);
 }
 
@@ -400,6 +404,7 @@
   #endif
   rf_index = arfcn_to_rf_index(arfcn);
 
+#if 0
   rfdiv = calc_a_b(arfcn, rx);
 
   if (rx != 1) {
@@ -411,6 +416,7 @@
     *TP_Ptr++ = TPU_FAT(0x12FD);
     TSP_TO_RF(0x023A | rf_chip_band);
   }
+#endif
 
   return(t);
 }
@@ -439,6 +445,7 @@
 	int agc_table_index;
 	UWORD16 rf_data;
 
+#if 0
 	agc_table_index = gain - 2;
 	if (agc_table_index < 0)
 		agc_table_index++;
@@ -454,6 +461,7 @@
 	rf_data |= AGC_TABLE[agc_table_index] << 11;
 	rf_data |= RX_CAL_MODE;
 	TSP_TO_RF(rf_data);
+#endif
 }
 
 /*------------------------------------------*/
@@ -501,6 +509,7 @@
 /*------------------------------------------*/
 void l1dmacro_rx_up (void)
 {
+#if 0
 	*TP_Ptr++ = TPU_FAT(0x1377);
 	TSP_TO_RF(0x0A3A | rf_chip_band);
 	*TP_Ptr++ = TPU_FAT(0x137E);
@@ -511,6 +520,7 @@
 	*TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].rx_up | RF_SER_ON);
 	*TP_Ptr++ = TPU_FAT(62);
 	TSP_TO_ABB(0x14);
+#endif
 }
 
 /*------------------------------------------*/
@@ -523,11 +533,13 @@
 /*------------------------------------------*/
 void l1dmacro_rx_down (WORD32 t)
 {
+#if 0
 	*TP_Ptr++ = TPU_FAT(t - 37);
 	TSP_TO_RF(0x003A);
 	*TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].rx_down | RF_SER_ON);
 	*TP_Ptr++ = TPU_FAT(t - 4);
 	TSP_TO_ABB(0x00);
+#endif
 }
 
 /*------------------------------------------*/
@@ -540,6 +552,7 @@
 /*------------------------------------------*/
 void l1dmacro_tx_up (void)
 {
+#if 0
 	if (l1_config.std.id == DCS1800 ||
 	    rfband == MULTI_BAND2 &&
 	    (l1_config.std.id == DUAL || l1_config.std.id == DUALEXT)) {
@@ -567,6 +580,7 @@
 	*TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up | RF_SER_ON);
 	*TP_Ptr++ = TPU_FAT(21);
 	*TP_Ptr++ = TPU_MOVE(TSP_ACTX, 0x0F);
+#endif
 }
 
 /*-------------------------------------------*/
@@ -579,6 +593,7 @@
 /*-------------------------------------------*/
 void l1dmacro_tx_down (WORD32 t, BOOL tx_flag, UWORD8 adc_active)
 {
+#if 0
 	if (adc_active == ACTIVE)
 		l1dmacro_adc_read_tx(t - 44);
 	*TP_Ptr++ = TPU_FAT(t - 4);
@@ -590,6 +605,7 @@
 	TSP_TO_RF(0x003A);
 	*TP_Ptr++ = TPU_FAT(t + 31);
 	TSP_TO_ABB(0x00);
+#endif
 }
 
 /*
@@ -732,8 +748,10 @@
    TPU_Reset(0);
    TP_Ptr = (UWORD16 *) TPU_RAM;
 
+#if 0
    *TP_Ptr++ = TPU_MOVE(TSP_ACT, RF_SER_ON);
    *TP_Ptr++ = TPU_MOVE(TSP_ACT, RF_SER_ON | FEM_OFF);
+#endif
 
    *TP_Ptr++ = TPU_OFFSET(servingCellOffset);
 }
@@ -745,6 +763,7 @@
 /* Rita version differs from LoCosto, reconstructing from disassembly */
 void l1dmacro_RF_sleep  (void)
 {
+#if 0
 	TSP_TO_RF(0x0002);
 	*TP_Ptr++ = TPU_MOVE(TSP_ACT, RF_SER_ON);
 	*TP_Ptr++ = TPU_WAIT(1);
@@ -753,6 +772,7 @@
 	*TP_Ptr++ = TPU_MOVE(TSP_CTRL1, TC1_DEVICE_RF | 0x01);
 	*TP_Ptr++ = TPU_MOVE(TSP_CTRL2, TC2_WR);
 	*TP_Ptr++ = TPU_WAIT(100);
+#endif
 	/* code from tpudrv61.c follows, same for Rita and LoCosto */
 	*TP_Ptr++ = TPU_SLEEP;
 	TP_Ptr = (SYS_UWORD16 *) TPU_RAM;
@@ -769,6 +789,7 @@
 void l1dmacro_RF_wakeup  (void)
 {
 	TP_Ptr = (SYS_UWORD16 *) TPU_RAM;
+#if 0
 	*TP_Ptr++ = TPU_MOVE(TSP_SPI_SET1, 0x01);
 	*TP_Ptr++ = TPU_MOVE(TSP_SPI_SET2, 0x06);
 	*TP_Ptr++ = TPU_MOVE(TSP_CTRL1, TC1_DEVICE_RF | 0x01);
@@ -798,6 +819,7 @@
 	TSP_TO_RF(0x043D);
 	*TP_Ptr++ = TPU_WAIT(7);
 	*TP_Ptr++ = TPU_WAIT(117);
+#endif
 	/* code from tpudrv61.c follows, same for Rita and LoCosto */
 	*TP_Ptr++ = TPU_SLEEP;
 	TP_Ptr = (SYS_UWORD16 *) TPU_RAM;
@@ -827,10 +849,12 @@
 
    TP_Ptr = (UWORD16 *) TPU_RAM;
 
+#if 0
    // Set FEM to inactive state before turning ON the RF Board
    // At this point the RF regulators are still OFF. Thus the
    // FEM command is not inverted yet => Must use the FEM "SLEEP programming"
    *TP_Ptr++ = TPU_MOVE(TSP_ACT, FEM_SLEEP | RF_SER_ON);
+#endif
 
    // TPU_SLEEP
    l1dmacro_idle();
@@ -838,10 +862,12 @@
    *TP_Ptr++ = TPU_AT(t);
    *TP_Ptr++ = TPU_SYNC(0);
 
+#if 0
    /* from disassembly, differs from LoCosto version */
    *TP_Ptr++ = TPU_MOVE(TSP_SPI_SET1, 0x20);
    *TP_Ptr++ = TPU_MOVE(TSP_SPI_SET2, 0x06);
    *TP_Ptr++ = TPU_MOVE(TSP_SPI_SET3, 0x00);
+#endif
 
    t = 1000;      // arbitrary start time