fw/layer1/tpu_window: Open and close RFFE tx_window at the right point of time

So far, the PA-enable signal has been enabled way to early and
also has been disabled much too late.
We're now setting the RFFE to TX-mode after opening the ABB
window, and setting the RFFE to RX-mode again after TX. This
yields to an almost perfectly timed TX-window, just like with the
stock firmware of the phone.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Steve Markgraf 2011-09-16 21:24:05 +02:00
parent 7bbd2ac411
commit 2b2209ebb5
1 changed files with 10 additions and 3 deletions

View File

@ -145,19 +145,26 @@ void l1s_tx_win_ctrl(uint16_t arfcn, enum l1_txwin_type wtype, uint8_t pwr, uint
offset -= l1s.ta << 2;
#ifdef CONFIG_TX_ENABLE
/* window open for TRF6151 and RFFE */
rffe_mode(gsm_arfcn2band(arfcn), 1);
/* window open for TRF6151 */
trf6151_tx_window(offset, arfcn);
#endif
/* Window open for ABB */
twl3025_uplink(1, offset);
#ifdef CONFIG_TX_ENABLE
/* Window open for RFFE */
rffe_mode(gsm_arfcn2band(arfcn), 1);
#endif
/* Window close for ABB */
twl3025_uplink(0, tx_burst_duration[wtype] + offset + 2); // TODO: "+ 2"
/* window close for TRF6151 and RFFE */
/* window close for TRF6151 */
trf6151_set_mode(TRF6151_IDLE);
/* Window close for RFFE */
rffe_mode(gsm_arfcn2band(arfcn), 0);
}
void tpu_end_scenario(void)