diff options
author | Trung Tran <trung.tran@ettus.com> | 2018-07-13 16:00:24 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-07-14 11:21:26 -0700 |
commit | 606d8fc36de0e1812da66e48f23eb7b840b28ebb (patch) | |
tree | 36f8623b0aaa36b13df922596291056941935afb /host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp | |
parent | 8a3148eb25cfd26c4449e6e34c3cba1e41ebc500 (diff) | |
download | uhd-606d8fc36de0e1812da66e48f23eb7b840b28ebb.tar.gz uhd-606d8fc36de0e1812da66e48f23eb7b840b28ebb.tar.bz2 uhd-606d8fc36de0e1812da66e48f23eb7b840b28ebb.zip |
mg: fix tx power issue
This commit will fix power issues with 2 radios configuration (UHD 3.12+).
Removed unused _master boolean.
CPLD path are now correct, each radio has its own CPLD object.
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp index 4f47427b7..ba7d937aa 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp @@ -111,25 +111,13 @@ void magnesium_radio_ctrl_impl::_init_defaults() void magnesium_radio_ctrl_impl::_init_peripherals() { UHD_LOG_TRACE(unique_id(), "Initializing peripherals..."); - fs_path cpld_path = _root_path.branch_path() - / str(boost::format("Radio_%d") % ((get_block_id().get_block_count()/2)*2)) - / "cpld"; - fs_path rx_lo_path = _root_path.branch_path() - / str(boost::format("Radio_%d") % ((get_block_id().get_block_count()/2)*2)) - / "rx_lo"; - fs_path tx_lo_path = _root_path.branch_path() - / str(boost::format("Radio_%d") % ((get_block_id().get_block_count()/2)*2)) - / "tx_lo"; UHD_LOG_TRACE(unique_id(), "Initializing SPI core..."); _spi = spi_core_3000::make(_get_ctrl(0), regs::sr_addr(regs::SPI), regs::rb_addr(regs::RB_SPI) ); - UHD_LOG_TRACE(unique_id(), "Initializing CPLD..."); - UHD_LOG_TRACE(unique_id(), "CPLD path: " << cpld_path); - if (not _tree->exists(cpld_path)) { - UHD_LOG_TRACE(unique_id(), "Creating new CPLD object..."); + UHD_LOG_TRACE(unique_id(), "Creating new CPLD object..."); spi_config_t spi_config; spi_config.use_custom_divider = true; spi_config.divider = 125; @@ -159,12 +147,6 @@ void magnesium_radio_ctrl_impl::_init_peripherals() DX_DIRECTION, radio_ctrl_impl::get_rx_antenna(0) ); - _tree->create<magnesium_cpld_ctrl::sptr>(cpld_path).set(_cpld); - } else { - UHD_LOG_TRACE(unique_id(), "Reusing someone else's CPLD object..."); - _cpld = _tree->access<magnesium_cpld_ctrl::sptr>(cpld_path).get(); - } - UHD_LOG_TRACE(unique_id(), "Initializing TX LO..."); _tx_lo = adf435x_iface::make_adf4351( [this](const std::vector<uint32_t> transactions){ |