summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board/gta0x/rffe_gta0x_triband.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2012-10-19 23:07:39 +0200
committerSylvain Munaut <tnt@246tNt.com>2013-01-02 20:44:11 +0100
commit1ccc9f88229f51fdeb4823599a304b22f4b72374 (patch)
treedb8b4dfa3c346426edc11b35871708703e5e85b8 /src/target/firmware/board/gta0x/rffe_gta0x_triband.c
parentf853f92e4712a629ccaa5e79b97aa9340d8d9123 (diff)
target: Add support for IQ swap when required
Operation in GSM850 band requires IQ swap because of the offset PLL used in the TRF causing spectrum reversal. Thanks to Dieter Spaar for noticing the issue and the original patch Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target/firmware/board/gta0x/rffe_gta0x_triband.c')
-rw-r--r--src/target/firmware/board/gta0x/rffe_gta0x_triband.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target/firmware/board/gta0x/rffe_gta0x_triband.c b/src/target/firmware/board/gta0x/rffe_gta0x_triband.c
index f118d291..b520f656 100644
--- a/src/target/firmware/board/gta0x/rffe_gta0x_triband.c
+++ b/src/target/firmware/board/gta0x/rffe_gta0x_triband.c
@@ -84,6 +84,12 @@ uint32_t rffe_get_tx_ports(void)
return (1 << PORT_LO) | (1 << PORT_HI);
}
+/* Returns need for IQ swap */
+int rffe_iq_swapped(uint16_t band_arfcn, int tx)
+{
+ return trf6151_iq_swapped(band_arfcn, tx);
+}
+
#define MCU_SW_TRACE 0xfffef00e
#define ARM_CONF_REG 0xfffef006