diff options
author | Steve Markgraf <steve@steve-m.de> | 2011-01-18 16:27:56 +0100 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2011-01-24 16:50:21 +0100 |
commit | f1ac298ff7c627acf02afb7ca90b4a01a09e391d (patch) | |
tree | 6252a40c341ae00a3d08866fb25c6723036249bf /src | |
parent | cb8b1983755a415eaeb58b74ab8f02e93c87ea99 (diff) |
fw/board/gta0x: implement TX support for gta0x devices
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/target/firmware/board/common/rffe_gta0x_triband.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/target/firmware/board/common/rffe_gta0x_triband.c b/src/target/firmware/board/common/rffe_gta0x_triband.c index cbfccd1c..ec42483a 100644 --- a/src/target/firmware/board/common/rffe_gta0x_triband.c +++ b/src/target/firmware/board/common/rffe_gta0x_triband.c @@ -33,7 +33,7 @@ void rffe_mode(enum gsm_band band, int tx) /* First we mask off all bits from the state cache */ tspact &= ~PA_ENABLE; - tspact |= GSM_TXEN; /* low-active */ + tspact &= ~GSM_TXEN; tspact |= ASM_VC1 | ASM_VC2 | ASM_VC3; /* low-active */ switch (band) { @@ -52,7 +52,21 @@ void rffe_mode(enum gsm_band band, int tx) #ifdef CONFIG_TX_ENABLE /* Then we selectively set the bits on, if required */ if (tx) { - // TODO: Implement tx + switch (band) { + case GSM_BAND_850: + case GSM_BAND_900: + tspact &= ~ASM_VC3; + break; + case GSM_BAND_1800: + case GSM_BAND_1900: + tspact &= ~ASM_VC1; + tspact |= ASM_VC2; + tspact |= GSM_TXEN; + break; + default: + break; + } + tspact |= PA_ENABLE; } #endif /* TRANSMIT_SUPPORT */ |