comparison L1/tpudrv/tpudrv12.h @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 /****************** Revision Controle System Header ***********************
2 * GSM Layer 1 software
3 * Copyright (c) Texas Instruments 1998
4 *
5 * Filename tpudrv12.h
6 * Copyright 2003 (C) Texas Instruments
7 *
8 ****************** Revision Controle System Header ***********************/
9
10 //--- Configuration values
11 #define FEM_TEST 0 // 1 => ENABLE the FEM_TEST mode
12 #define RF_VERSION 1 // 1 or V1, 5 for V5, etc
13 #define SAFE_INIT_WA 0 // 1 => ENABLE the "RITA safe init"
14 // TeST - Enable Main VCO buffer for test
15 #define MAIN_VCO_ACCESS_WA 0 // 1 => ENABLE the Main VCO buffer
16
17 #if 0 // FreeCalypso
18 #include "rf.cfg"
19 #endif
20
21 //--- RITA PG declaration
22
23 #define R_PG_10 0
24 #define R_PG_13 1
25 #define R_PG_20 2 // For RFPG 2.2, use 2.0
26 #define R_PG_23 3
27
28 //--- PA declaration
29 #define PA_MGF9009 0
30 #define PA_RF3146 1
31 #define PA_RF3133 2
32 #define PA_PF08123B 3
33 #define PA_AWT6108 4
34
35 #if (RF_PA == PA_MGF9009 || RF_PA == PA_PF08123B)
36 #define PA_CTRL_INT 0
37 #else
38 #define PA_CTRL_INT 1
39 #endif
40
41 //- Select the RF PG (x10), i.e. 10 for 1.0, 11 for 1.1 or 20 for 2.0
42 // AlphaRF7 => "PG #1.3" for TPU purposes (not an official PC number)
43 // This is also used in l1_rf12.h to select the SWAP_IQ
44 #if (RF_PG >= R_PG_20)
45 // TeST - PLL2 WA activation => Set PLL2 Speed-up ON in RX
46 #define PLL2_WA 0 // 0 => DISABLE the PLL2_WA (Rene's "Work-Around")
47 #define ALPHA_RF7_WA 0 // 0 => DISABLE the Alpha RF7 work-arounds
48 #elif (RF_PG == R_PG_13)
49 // TeST - PLL2 WA activation => Set PLL2 Speed-up ON in RX
50 #define PLL2_WA 1 // 1 => ENABLE the PLL2_WA (Rene's "Work-Around")
51 #define ALPHA_RF7_WA 1 // 1 => ENABLE the Alpha RF7 work-arounds
52 #else
53 // TeST - PLL2 WA activation => Set PLL2 Speed-up ON in RX
54 #define PLL2_WA 1 // 1 => ENABLE the PLL2_WA (Rene's "Work-Around")
55 #define ALPHA_RF7_WA 1 // 1 => ENABLE the Alpha RF7 work-arounds
56 #endif
57
58 //- Bit definitions for TST register programings, etc
59 #define BIT_0 0x000001
60 #define BIT_1 0x000002
61 #define BIT_2 0x000004
62 #define BIT_3 0x000008
63 #define BIT_4 0x000010
64 #define BIT_5 0x000020
65 #define BIT_6 0x000040
66 #define BIT_7 0x000080
67 #define BIT_8 0x000100
68 #define BIT_9 0x000200
69 #define BIT_10 0x000400
70 #define BIT_11 0x000800
71 #define BIT_12 0x001000
72 #define BIT_13 0x002000
73 #define BIT_14 0x004000
74 #define BIT_15 0x008000
75 #define BIT_16 0x010000
76 #define BIT_17 0x020000
77 #define BIT_18 0x040000
78 #define BIT_19 0x080000
79 #define BIT_20 0x100000
80 #define BIT_21 0x200000
81 #define BIT_22 0x400000
82 #define BIT_23 0x800000
83
84 //--- TRF6151 definitions ------------------------------------------
85
86 //- BASE REGISTER definitions
87 #define REG_RX 0x000000 // MODE0
88 #define REG_PLL 0x000001 // MODE1
89 #define REG_PWR 0x000002 // MODE2
90 #define REG_CFG 0x000003 // MODE3
91
92 //- TeST REGISTER definitions => Used for WA only
93 // TeST - PLL2 WA => Define PLL2 TEST register
94 #define TST_PLL2 0x00001E // MODE 14
95
96 // TeST - Enable Main VCO buffer for test => Define TST_VCO3 register
97 #define TST_VCO3 0x00000F // MODE 15 (0*16+15*1)
98 #define TST_VCO4 0x000024 // MODE 36 (2*16+4*1)
99
100 // Alpha RF7 WA TeST registers
101 #define TST_LDO 0x000027 // MODE 39 (2*16+7*1)
102 #define TST_PLL1 0x00001D // MODE 29 (1*16+13*1)
103 #define TST_TX2 0x000037 // MODE 55 (3*16+7*1)
104
105 // More Alpha RF7 WA TeST registers
106 #define TST_TX3 0x00003C // MODE 61 (3*16+12*1)
107 #define TST_TX4 0x00003D // MODE 61 (3*16+13*1)
108
109 // PG 2.1 WA TeST registers
110 #define TST_PLL3 0x00001F // MODE 31 (1*16+15*1)
111 // #define TST_PLL4 0x00002C // MODE 44 (2*16+12*1)
112 #define TST_MISC 0x00003E // MODE 62 (3*16+14*1) => Used for setting the VCXO current
113 #define TST_LO 0x00001C // MODE 28 (1*16+12*1)
114
115 // Registers used to improve the Modulation Spectrum in DCS/PCS for PG2.1 V1
116 // UPDATE_SERIAL_REGISTER_COPY is a "dummy addres" that,
117 // when accessed, triggers the copy of the serial registers.
118 // This is necessary to switch into "manual operation mode"
119 #define UPDATE_SERIAL_INTERFACE_COPY 0x000007
120 #define TX_LOOP_MANUAL BIT_3
121
122
123 //- REG_RX - MODE0
124 #define BLOCK_DETECT_0 BIT_3
125 #define BLOCK_DETECT_1 BIT_4
126 #define RST_BLOCK_DETECT_0 BIT_5
127 #define RST_BLOCK_DETECT_1 BIT_6
128 #define READ_EN BIT_7
129 #define RX_CAL_MODE BIT_8
130 #define RF_GAIN (BIT_10 | BIT_9)
131
132
133 //- REG_PLL - MODE1
134 //PLL_REGB
135 //PLL_REGA
136
137 //- REG_PWR - MODE2
138 #define BANDGAP_MODE_OFF 0x0
139 #define BANDGAP_MODE_ON_ENA BIT_4
140 #define BANDGAP_MODE_ON_DIS (BIT_4 | BIT_3)
141 #define REGUL_MODE_ON BIT_5
142 // BIT[8..6] band
143 #define BAND_SELECT_GSM BIT_6
144 #define BAND_SELECT_DCS BIT_7
145 #define BAND_SELECT_850_LO BIT_8
146 #define BAND_SELECT_850_HI (BIT_8 | BIT_6)
147 #define BAND_SELECT_PCS (BIT_8 | BIT_7)
148
149 #define SYNTHE_MODE_OFF 0x0
150 #define SYNTHE_MODE_RX BIT_9
151 #define SYNTHE_MODE_TX BIT_10
152 #define RX_MODE_OFF 0x0
153 #define RX_MODE_A BIT_11
154 #define RX_MODE_B1 BIT_12
155 #define RX_MODE_B2 (BIT_12 | BIT_11)
156 #define TX_MODE_OFF 0x0
157 #define TX_MODE_ON BIT_13
158 #define PACTRL_APC_OFF 0x0
159 #define PACTRL_APC_ON BIT_14
160 #define PACTRL_APC_DIS 0x0
161 #define PACTRL_APC_ENA BIT_15
162
163
164 //- REG_CFG - MODE3
165 // Common PA controller settings:
166 #define PACTRL_TYPE_PWR 0x0
167 #define PACTRL_TYPE_CUR BIT_3
168 #define PACTRL_IDIOD_30_UA 0x0
169 #define PACTRL_IDIOD_300_UA BIT_4
170
171 // PA controller Clara-like (Power Sensing) settings:
172 #define PACTRL_VHOME_610_MV (BIT_7 | BIT_5)
173 #define PACTRL_VHOME_839_MV (BIT_7 | BIT_5)
174 #define PACTRL_VHOME_1000_MV (BIT_6 | BIT_9)
175 #define PACTRL_VHOME_1600_MV (BIT_8 | BIT_5)
176 #define PACTRL_RES_OPEN 0x0
177 #define PACTRL_RES_150_K BIT_10
178 #define PACTRL_RES_300_K BIT_11
179 #define PACTRL_RES_NU (BIT_10 | BIT_11)
180 #define PACTRL_CAP_0_PF 0x0
181 #define PACTRL_CAP_12_5_PF BIT_12
182 #define PACTRL_CAP_25_PF (BIT_13 | BIT_12)
183 #define PACTRL_CAP_50_PF BIT_13
184
185 // PACTRL_CFG contains the configuration of the PACTRL that will
186 // be put into the REG_CFG register at initialization time
187 // WARNING - Do not forget to set the PACTRL_TYPE (PWR or CUR)
188 // in this #define!!!
189 #if (RF_PA == 0) // MGF9009 (LCPA)
190 #define PACTRL_CFG \
191 PACTRL_IDIOD_300_UA | \
192 PACTRL_CAP_25_PF | \
193 PACTRL_VHOME_1000_MV | \
194 PACTRL_RES_300_K
195 #elif (RF_PA == 1) // 3146
196 #define PACTRL_CFG 0
197
198 #elif (RF_PA == 2) // 3133
199 #define PACTRL_CFG 0
200
201 #elif (RF_PA == 3) // PF08123B
202 #define PACTRL_CFG \
203 PACTRL_TYPE_PWR | \
204 PACTRL_CAP_50_PF | \
205 PACTRL_RES_300_K | \
206 PACTRL_VHOME_610_MV
207 #elif (RF_PA == 4) // AWT6108
208 #define PACTRL_CFG 0
209 #else
210 #error Unknown PA specifiec!
211 #endif
212
213 // Temperature sensor
214 #define TEMP_SENSOR_OFF 0x0
215 #define TEMP_SENSOR_ON BIT_14
216 // Internal Logic Init Disable
217 #define ILOGIC_INIT_DIS BIT_15
218 // ILOGIC_INIT_DIS must be ALWAYS set when programming the REG_CFG register
219 // It was introduced in PG 1.2
220 // For previous PGs this BIT was unused, so it can be safelly programmed
221 // for all PGs
222
223
224 // RF signals connected to TSPACT [0..7]
225
226 #if CONFIG_TARGET_PIRELLI
227 #define RF_RESET_LINE BIT_5
228 #else
229 #define RF_RESET_LINE BIT_0
230 #endif
231
232 #define RF_SER_ON RF_RESET_LINE
233 #define RF_SER_OFF 0
234
235 #define TEST_TX_ON 0
236 #define TEST_RX_ON 0
237
238 #if CONFIG_TARGET_LEONARDO || CONFIG_TARGET_ESAMPLE
239
240 // 4-band config (E-sample, P2, Leonardo)
241 #define FEM_7 BIT_2 // act2
242 #define FEM_8 BIT_1 // act1
243 #define FEM_9 BIT_4 // act4
244
245 #define PA_HI_BAND BIT_3 // act3
246 #define PA_LO_BAND 0
247 #define PA_OFF 0
248
249 #define FEM_PINS (FEM_7 | FEM_8 | FEM_9)
250
251 #define FEM_OFF ( FEM_PINS ^ 0 )
252
253 #define FEM_SLEEP ( 0 )
254
255 // This configuration is always inverted.
256
257 // RX_UP/DOWN and TX_UP/DOWN
258 #define RU_900 ( PA_OFF | FEM_PINS ^ 0 )
259 #define RD_900 ( PA_OFF | FEM_PINS ^ 0 )
260 #define TU_900 ( PA_LO_BAND | FEM_PINS ^ FEM_7 )
261 #define TD_900 ( PA_OFF | FEM_PINS ^ 0 )
262
263 #define RU_850 ( PA_OFF | FEM_PINS ^ FEM_9 )
264 #define RD_850 ( PA_OFF | FEM_PINS ^ 0 )
265 #define TU_850 ( PA_LO_BAND | FEM_PINS ^ FEM_7 )
266 #define TD_850 ( PA_OFF | FEM_PINS ^ 0 )
267
268 #define RU_1800 ( PA_OFF | FEM_PINS ^ 0 )
269 #define RD_1800 ( PA_OFF | FEM_PINS ^ 0 )
270 #define TU_1800 ( PA_HI_BAND | FEM_PINS ^ FEM_8 )
271 #define TD_1800 ( PA_OFF | FEM_PINS ^ 0 )
272
273 #define RU_1900 ( PA_OFF | FEM_PINS ^ 0 )
274 #define RD_1900 ( PA_OFF | FEM_PINS ^ 0 )
275 #define TU_1900 ( PA_HI_BAND | FEM_PINS ^ FEM_8 )
276 #define TD_1900 ( PA_OFF | FEM_PINS ^ 0 )
277
278 #elif CONFIG_TARGET_GTAMODEM || CONFIG_TARGET_FCDEV3B
279
280 // Openmoko's triband configuration is a bastardized version
281 // of TI's quadband one from Leonardo/E-Sample
282
283 #define FEM_7 BIT_2 // act2
284 #define FEM_8 BIT_1 // act1
285 #define FEM_9 BIT_4 // act4
286
287 #define PA_HI_BAND BIT_3 // act3
288 #define PA_LO_BAND 0
289 #define PA_OFF 0
290
291 #define FEM_PINS (FEM_7 | FEM_8 | FEM_9)
292
293 #define FEM_OFF ( FEM_PINS ^ 0 )
294
295 #define FEM_SLEEP ( 0 )
296
297 // This configuration is always inverted.
298
299 // RX_UP/DOWN and TX_UP/DOWN
300 #define RU_900 ( PA_OFF | FEM_PINS ^ 0 )
301 #define RD_900 ( PA_OFF | FEM_PINS ^ 0 )
302 #define TU_900 ( PA_LO_BAND | FEM_PINS ^ FEM_9 )
303 #define TD_900 ( PA_OFF | FEM_PINS ^ 0 )
304
305 #define RU_850 ( PA_OFF | FEM_PINS ^ 0 )
306 #define RD_850 ( PA_OFF | FEM_PINS ^ 0 )
307 #define TU_850 ( PA_LO_BAND | FEM_PINS ^ FEM_9 )
308 #define TD_850 ( PA_OFF | FEM_PINS ^ 0 )
309
310 #define RU_1800 ( PA_OFF | FEM_PINS ^ 0 )
311 #define RD_1800 ( PA_OFF | FEM_PINS ^ 0 )
312 #define TU_1800 ( PA_HI_BAND | FEM_PINS ^ FEM_7 )
313 #define TD_1800 ( PA_OFF | FEM_PINS ^ 0 )
314
315 #define RU_1900 ( PA_OFF | FEM_PINS ^ FEM_8 )
316 #define RD_1900 ( PA_OFF | FEM_PINS ^ 0 )
317 #define TU_1900 ( PA_HI_BAND | FEM_PINS ^ FEM_7 )
318 #define TD_1900 ( PA_OFF | FEM_PINS ^ 0 )
319
320 #elif CONFIG_TARGET_PIRELLI
321
322 #define ANTSW_RX_PCS BIT_4
323 #define ANTSW_TX_HIGH BIT_10
324 #define ANTSW_TX_LOW BIT_11
325
326 #define PA_HI_BAND BIT_3 // act3
327 #define PA_LO_BAND 0
328 #define PA_OFF 0
329
330 #define PA_ENABLE BIT_0
331
332 // Pirelli uses a non-inverting buffer
333
334 #define FEM_OFF ( 0 )
335
336 #define FEM_SLEEP ( 0 )
337
338 // RX_UP/DOWN and TX_UP/DOWN (triband)
339 #define RU_900 ( PA_OFF | 0 )
340 #define RD_900 ( PA_OFF | 0 )
341 #define TU_900 ( PA_LO_BAND | ANTSW_TX_LOW )
342 #define TD_900 ( PA_OFF | 0 )
343
344 #define RU_850 ( PA_OFF | 0 )
345 #define RD_850 ( PA_OFF | 0 )
346 #define TU_850 ( PA_LO_BAND | ANTSW_TX_LOW )
347 #define TD_850 ( PA_OFF | 0 )
348
349 #define RU_1800 ( PA_OFF | 0 )
350 #define RD_1800 ( PA_OFF | 0 )
351 #define TU_1800 ( PA_HI_BAND | ANTSW_TX_HIGH )
352 #define TD_1800 ( PA_OFF | 0 )
353
354 #define RU_1900 ( PA_OFF | ANTSW_RX_PCS )
355 #define RD_1900 ( PA_OFF | 0 )
356 #define TU_1900 ( PA_HI_BAND | ANTSW_TX_HIGH )
357 #define TD_1900 ( PA_OFF | 0 )
358
359 #elif CONFIG_TARGET_COMPAL
360
361 #define PA_HI_BAND BIT_8 // act8
362 #define PA_LO_BAND 0
363 #define PA_OFF 0
364
365 #define PA_ENABLE BIT_1
366
367 // FEM control signals are active low
368 #define FEM_PINS (BIT_6 | BIT_2)
369
370 #define FEM_OFF ( FEM_PINS ^ 0 )
371
372 #define FEM_SLEEP ( 0 )
373
374 #define FEM_TX_HIGH BIT_6
375 #if USE_TSPACT2_FOR_TXLOW
376 #define FEM_TX_LOW BIT_2
377 #else
378 #define FEM_TX_LOW BIT_6
379 #endif
380
381 // RX_UP/DOWN and TX_UP/DOWN
382 #define RU_900 ( PA_OFF | FEM_PINS ^ 0 )
383 #define RD_900 ( PA_OFF | FEM_PINS ^ 0 )
384 #define TU_900 ( PA_LO_BAND | FEM_PINS ^ FEM_TX_LOW )
385 #define TD_900 ( PA_OFF | FEM_PINS ^ 0 )
386
387 #define RU_850 ( PA_OFF | FEM_PINS ^ 0 )
388 #define RD_850 ( PA_OFF | FEM_PINS ^ 0 )
389 #define TU_850 ( PA_LO_BAND | FEM_PINS ^ FEM_TX_LOW )
390 #define TD_850 ( PA_OFF | FEM_PINS ^ 0 )
391
392 #define RU_1800 ( PA_OFF | FEM_PINS ^ 0 )
393 #define RD_1800 ( PA_OFF | FEM_PINS ^ 0 )
394 #define TU_1800 ( PA_HI_BAND | FEM_PINS ^ FEM_TX_HIGH )
395 #define TD_1800 ( PA_OFF | FEM_PINS ^ 0 )
396
397 #define RU_1900 ( PA_OFF | FEM_PINS ^ 0 )
398 #define RD_1900 ( PA_OFF | FEM_PINS ^ 0 )
399 #define TU_1900 ( PA_HI_BAND | FEM_PINS ^ FEM_TX_HIGH )
400 #define TD_1900 ( PA_OFF | FEM_PINS ^ 0 )
401
402 #endif // FreeCalypso target selection
403
404 #define TC1_DEVICE_ABB TC1_DEVICE0 // TSPEN0
405 #if CONFIG_TARGET_PIRELLI
406 #define TC1_DEVICE_RF TC1_DEVICE1 // TSPEN1
407 #else
408 #define TC1_DEVICE_RF TC1_DEVICE2 // TSPEN2
409 #endif
410
411
412 //--- TIMINGS ----------------------------------------------------------
413
414 /*------------------------------------------*/
415 /* Download delay values */
416 /*------------------------------------------*/
417 // 1 qbit = 12/13 usec (~0.9230769), i.e. 200 usec is ~ 217 qbit (200 * 13 / 12)
418
419 #define T TPU_CLOCK_RANGE
420
421
422 // - TPU instruction into TSP timings ---
423 // 1 tpu instruction = 1 qbit
424 #define DLT_1 1 // 1 tpu instruction = 1 qbit
425 #define DLT_2 2 // 2 tpu instruction = 2 qbit
426 #define DLT_3 3 // 3 tpu instruction = 3 qbit
427 #define DLT_4 4 // 4 tpu instruction = 4 qbit
428 #define SL_SU_DELAY2 DLT_3 // Needed to compile with old l1_rf12
429
430 // - Serialization timings ---
431 // The following values where calculated with Katrin Matthes...
432 //#define SL_7 3 // To send 7 bits to the ABB, 14*T (1/6.5MHz) are needed,
433 // // i.e. 14 / 6 qbit = 2.333 ~ 3 qbit
434 //#define SL_2B 6 // To send 2 bytes to the RF, 34*T (1/6.5MHz) are needed,
435 // // i.e. 34 / 6 qbit = 5.7 ~ 6 qbit
436 // ... while the following values are based on the HYP004.doc document
437 #define SL_7 2 // To send 7 bits to the ABB, 12*T (1/6.5MHz) are needed,
438 // i.e. 12 / 6 qbit = 2 qbit
439 #define SL_2B 4 // To send 2 bytes to the RF, 21*T (1/6.5MHz) are needed,
440 // i.e. 21 / 6 qbit = 3.5 ~ 4 qbit
441
442 // - TPU command execution + serialization length ---
443 #define DLT_1B 4 // 3*move + serialization of 7 bits
444 #define DLT_2B 7 // 4*move + serialization of 2 bytes
445 //#define DLT_1B DLT_3 + SL_7 // 3*move + serialization of 7 bits
446 //#define DLT_2B DLT_4 + SL_2B // 4*move + serialization of 2 bytes
447
448
449 // - INIT (delta or DLT) timings ---
450 #define DLT_I1 5 // Time required to set EN high before RF_SER_OFF -> RF_SER_ON
451 #define DLT_I2 8 // Time required to set RF_SER_OFF
452 #define DLT_I3 5 // Time required to set RF_SER_ON
453 #define DLT_I4 110 // Regulator Turn-ON time
454
455
456 // - tdt & rdt ---
457 // MAX GSM (not GPRS) rdt and tdt values are...
458 //#define rdt 380 // MAX GSM rx delta timing
459 //#define tdt 400 // MAX GSM tx delta timing
460 // but current rdt and tdt values are...
461 #define rdt 0 // rx delta timing
462 #define tdt 0 // tx delta timing
463
464 // - RX timings ---
465 // - RX down:
466 // The times below are offsets to when BDLENA goes down
467 #define TRF_R10 ( 0 - DLT_1B ) // disable BDLENA & BDLON -> power DOWN ABB (end of RX burst), needs DLT_1B to execute
468 #define TRF_R9 ( - 30 - DLT_2B ) // disable RF SWITCH, power DOWN Rita (go to Idle2 mode)
469
470 // - RX up:
471 // The times below are offsets to when BDLENA goes high
472 // Burst data comes here
473 #define TRF_R8 ( PROVISION_TIME - 0 - DLT_1B ) // enable BDLENA, disable BDLCAL (I/Q comes 32qbit later)
474 #define TRF_R7 ( PROVISION_TIME - 7 - DLT_1 ) // enable RF SWITCH
475 #define TRF_R6 ( PROVISION_TIME - 67 - DLT_1B ) // enable BDLCAL -> ABB DL filter init
476 #define TRF_R5 ( PROVISION_TIME - 72 - DLT_1B ) // enable BDLON -> power ON ABB DL path
477 #define TRF_R4 ( PROVISION_TIME - 76 - DLT_2B - rdt ) // power ON RX
478 #define TRF_R3 (PROVISION_TIME - 143 - DLT_2B - rdt ) // select the AGC & LNA gains + start DC offset calibration (stops automatically)
479 //l1dmacro_adc_read_rx() called here requires ~ 16 tpuinst
480 #define TRF_R2 (PROVISION_TIME - 198 - DLT_2B - rdt ) // set BAND + power ON RX Synth
481 #define TRF_R1 (PROVISION_TIME - 208 - DLT_2B - rdt ) // set RX Synth channel
482
483 // - TX timings ---
484 // - TX down:
485 // The times below are offsets to when BULENA goes down
486
487 #if (PA_CTRL_INT == 1)
488 #define TRF_T13 ( 35 - DLT_1B ) // right after, BULON low
489 #define TRF_T12_5 ( 32 - DLT_2B ) // Power OFF TX loop => power down RF.
490 #define TRF_T12_3 ( 23 - DLT_1 ) // Disable TXEN.
491 #endif
492
493 #if (PA_CTRL_INT == 0)
494 #define TRF_T13 ( 35 - DLT_1B ) // right after, BULON low
495 #define TRF_T12_2 ( 32 - DLT_2B ) // power down RF step 2
496 #define TRF_T12 ( 18 - DLT_2B ) // power down RF step 1
497 #endif
498
499 #define TRF_T11 ( 0 - DLT_1B ) // disable BULENA -> end of TX burst
500 #define TRF_T10_5 ( - 40 - DLT_1B ) // ADC read
501
502 // - TX up:
503 // The times below are offsets to when BULENA goes high
504 //burst data comes here
505 #define TRF_T10_4 ( 22 - DLT_1 ) // enable RF SWITCH + TXEN
506 #define TRF_T10 ( 17 - DLT_1 ) // enable RF SWITCH
507
508 #if (PA_CTRL_INT == 0)
509 #define TRF_T9 ( 8 - DLT_2B ) // enable PACTRL
510 #endif
511
512 #define TRF_T8 ( - 0 - DLT_1B ) // enable BULENA -> start of TX burst
513 #define TRF_T7 ( - 50 - DLT_1B - tdt ) // disable BULCAL -> stop ABB UL calibration
514 #define TRF_T6 ( - 130 - DLT_1B - tdt ) // enable BULCAL -> start ABB UL calibration
515 #define TRF_T5 ( - 158 - DLT_2B - tdt ) // power ON TX
516 #define TRF_T4 ( - 190 - DLT_1B - tdt ) // enable BULON -> power ON ABB UL path
517 // TRF_T3_MAN_1, TRF_T3_MAN_2 & TRF_T3_MAN_3 are only executed in DCS for PG 2.0 and above
518 #define TRF_T3_MAN_3 ( - 239 - DLT_2B - tdt ) // PG2.1: Set the right TX loop charge pump current for DCS & PCS
519 #define TRF_T3_MAN_2 ( - 249 - DLT_2B - tdt ) // PG2.1: Go into "TX Manual mode"
520 #define TRF_T3_MAN_1 ( - 259 - DLT_2B - tdt ) // PG2.1: IN DCS, use manual mode: Copy Serial Interface Registers for "Manual operation"
521 #define TRF_T3 ( - 259 - DLT_2B - tdt ) // PG2.1: In GSM & PCS go to "Automatic TX mode"
522 #define TRF_T2 ( - 269 - DLT_2B - tdt ) // PG2.0: set BAND + Power ON Main TX PLL + PACTRL ON
523 #define TRF_T1 ( - 279 - DLT_2B - tdt ) // set TX Main PLL channel
524