diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2012-10-19 23:07:39 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2013-01-02 20:44:11 +0100 |
commit | 1ccc9f88229f51fdeb4823599a304b22f4b72374 (patch) | |
tree | db8b4dfa3c346426edc11b35871708703e5e85b8 /src/target/firmware/board | |
parent | f853f92e4712a629ccaa5e79b97aa9340d8d9123 (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')
4 files changed, 24 insertions, 0 deletions
diff --git a/src/target/firmware/board/compal/rffe_dualband.c b/src/target/firmware/board/compal/rffe_dualband.c index f4b73618..de161899 100644 --- a/src/target/firmware/board/compal/rffe_dualband.c +++ b/src/target/firmware/board/compal/rffe_dualband.c @@ -55,6 +55,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 diff --git a/src/target/firmware/board/compal_e86/rffe_dualband_e86.c b/src/target/firmware/board/compal_e86/rffe_dualband_e86.c index 25bb0997..4ad85dcd 100644 --- a/src/target/firmware/board/compal_e86/rffe_dualband_e86.c +++ b/src/target/firmware/board/compal_e86/rffe_dualband_e86.c @@ -59,6 +59,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 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 diff --git a/src/target/firmware/board/pirelli_dpl10/rffe_dpl10_triband.c b/src/target/firmware/board/pirelli_dpl10/rffe_dpl10_triband.c index d4d13424..b3ec0d4b 100644 --- a/src/target/firmware/board/pirelli_dpl10/rffe_dpl10_triband.c +++ b/src/target/firmware/board/pirelli_dpl10/rffe_dpl10_triband.c @@ -83,6 +83,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 |