aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2021-04-15 23:18:19 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2021-04-22 15:11:24 -0500
commit38ece31201d7c940a82b633cc0e1facee718543c (patch)
tree6bf92be6facdc89b0bd89be533282a3dcfb263c1 /host/lib/usrp
parent93e664789bacb8e82eff02c43c41a791b7609546 (diff)
downloaduhd-38ece31201d7c940a82b633cc0e1facee718543c.tar.gz
uhd-38ece31201d7c940a82b633cc0e1facee718543c.tar.bz2
uhd-38ece31201d7c940a82b633cc0e1facee718543c.zip
N320: Fix IQ mapping and frontend corrections
Changed register offset from 4 bytes to 8 bytes. The registers in the frontend were not being properly addressed, so calibration, IQ mapping, and frontend corrections were not working properly. Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp b/host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp
index f19298697..844b0752b 100644
--- a/host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp
+++ b/host/lib/usrp/dboard/rhodium/rhodium_radio_control_init.cpp
@@ -154,13 +154,15 @@ void rhodium_radio_control_impl::_init_peripherals()
_generate_read_spi(this->_spi, SEN_CPLD, _get_cpld_spi_config()));
RFNOC_LOG_TRACE("Initializing TX frontend DSP core...")
- _tx_fe_core = tx_frontend_core_200::make(_wb_iface, n320_regs::SR_TX_FE_BASE);
+ _tx_fe_core = tx_frontend_core_200::make(
+ _wb_iface, n320_regs::SR_TX_FE_BASE, n320_regs::PERIPH_REG_OFFSET);
_tx_fe_core->set_dc_offset(tx_frontend_core_200::DEFAULT_DC_OFFSET_VALUE);
_tx_fe_core->set_iq_balance(tx_frontend_core_200::DEFAULT_IQ_BALANCE_VALUE);
_tx_fe_core->populate_subtree(get_tree()->subtree(FE_PATH / "tx_fe_corrections" / 0));
RFNOC_LOG_TRACE("Initializing RX frontend DSP core...")
- _rx_fe_core = rx_frontend_core_3000::make(_wb_iface, n320_regs::SR_RX_FE_BASE);
+ _rx_fe_core = rx_frontend_core_3000::make(
+ _wb_iface, n320_regs::SR_RX_FE_BASE, n320_regs::PERIPH_REG_OFFSET);
_rx_fe_core->set_adc_rate(_master_clock_rate);
_rx_fe_core->set_dc_offset(rx_frontend_core_3000::DEFAULT_DC_OFFSET_VALUE);
_rx_fe_core->set_dc_offset_auto(rx_frontend_core_3000::DEFAULT_DC_OFFSET_ENABLE);