comparison src/cs/layer1/tpu_drivers/source0/tpudrv12.h @ 169:9d46c005da91

tpudrv12.h: GTM900 target support from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 19 Jun 2019 04:11:11 +0000
parents 7409b22cac61
children 2a9935250c95
comparison
equal deleted inserted replaced
168:aa2956979fcb 169:9d46c005da91
368 #define RU_1900 ( PA_OFF | FEM_PINS ^ FEM_RX_1900 ) 368 #define RU_1900 ( PA_OFF | FEM_PINS ^ FEM_RX_1900 )
369 #define RD_1900 ( PA_OFF | FEM_PINS ^ 0 ) 369 #define RD_1900 ( PA_OFF | FEM_PINS ^ 0 )
370 #define TU_1900 ( PA_HI_BAND | FEM_PINS ^ FEM_TX_HIGH ) 370 #define TU_1900 ( PA_HI_BAND | FEM_PINS ^ FEM_TX_HIGH )
371 #define TD_1900 ( PA_OFF | FEM_PINS ^ 0 ) 371 #define TD_1900 ( PA_OFF | FEM_PINS ^ 0 )
372 372
373 #elif defined(CONFIG_TARGET_GTM900)
374
375 /*
376 * Huawei GTM900-B is very closely based on Leonardo (2-band version),
377 * but the two FEM Tx control signals are reversed.
378 */
379
380 #define FEM_TX_LOW BIT_1 // act1
381 #define FEM_TX_HIGH BIT_2 // act2
382
383 #define PA_HI_BAND BIT_3 // act3
384 #define PA_LO_BAND 0
385 #define PA_OFF 0
386
387 #define FEM_PINS (FEM_TX_LOW | FEM_TX_HIGH)
388
389 #define FEM_OFF ( FEM_PINS ^ 0 )
390
391 #define FEM_SLEEP ( 0 )
392
393 // This configuration is always inverted.
394
395 // RX_UP/DOWN and TX_UP/DOWN
396 #define RU_900 ( PA_OFF | FEM_PINS ^ 0 )
397 #define RD_900 ( PA_OFF | FEM_PINS ^ 0 )
398 #define TU_900 ( PA_LO_BAND | FEM_PINS ^ FEM_TX_LOW )
399 #define TD_900 ( PA_OFF | FEM_PINS ^ 0 )
400
401 #define RU_850 ( PA_OFF | FEM_PINS ^ 0 )
402 #define RD_850 ( PA_OFF | FEM_PINS ^ 0 )
403 #define TU_850 ( PA_LO_BAND | FEM_PINS ^ FEM_TX_LOW )
404 #define TD_850 ( PA_OFF | FEM_PINS ^ 0 )
405
406 #define RU_1800 ( PA_OFF | FEM_PINS ^ 0 )
407 #define RD_1800 ( PA_OFF | FEM_PINS ^ 0 )
408 #define TU_1800 ( PA_HI_BAND | FEM_PINS ^ FEM_TX_HIGH )
409 #define TD_1800 ( PA_OFF | FEM_PINS ^ 0 )
410
411 #define RU_1900 ( PA_OFF | FEM_PINS ^ 0 )
412 #define RD_1900 ( PA_OFF | FEM_PINS ^ 0 )
413 #define TU_1900 ( PA_HI_BAND | FEM_PINS ^ FEM_TX_HIGH )
414 #define TD_1900 ( PA_OFF | FEM_PINS ^ 0 )
415
373 #elif defined(CONFIG_TARGET_PIRELLI) 416 #elif defined(CONFIG_TARGET_PIRELLI)
374 417
375 #define ANTSW_RX_PCS BIT_4 418 #define ANTSW_RX_PCS BIT_4
376 #define ANTSW_TX_HIGH BIT_10 419 #define ANTSW_TX_HIGH BIT_10
377 #define ANTSW_TX_LOW BIT_11 420 #define ANTSW_TX_LOW BIT_11