diff options
author | Michael West <michael.west@ettus.com> | 2018-04-10 12:24:36 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-07-17 09:35:31 -0700 |
commit | 08855405d6511774f65d2b7c7a976202e215bb7d (patch) | |
tree | 3c9f190bbb5f3188c23afb4676425bf5bdb647ad /host/lib/usrp/x300/x300_impl.cpp | |
parent | 6094254768e08fd906ce1addc130a6b5c5bb0caa (diff) | |
download | uhd-08855405d6511774f65d2b7c7a976202e215bb7d.tar.gz uhd-08855405d6511774f65d2b7c7a976202e215bb7d.tar.bz2 uhd-08855405d6511774f65d2b7c7a976202e215bb7d.zip |
X300: Change default dboard_clock_rate depending on master_clock_rate
Diffstat (limited to 'host/lib/usrp/x300/x300_impl.cpp')
-rw-r--r-- | host/lib/usrp/x300/x300_impl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp index 209fd598f..4a8c12e04 100644 --- a/host/lib/usrp/x300/x300_impl.cpp +++ b/host/lib/usrp/x300/x300_impl.cpp @@ -887,11 +887,12 @@ void x300_impl::setup_mb(const size_t mb_i, const uhd::device_addr_t &dev_addr) UHD_LOGGER_DEBUG("X300") << "Setting up RF frontend clocking..."; //Initialize clock control registers. NOTE: This does not configure the LMK yet. + const double requested_mcr = dev_addr.cast<double>("master_clock_rate", X300_DEFAULT_TICK_RATE); mb.clock = x300_clock_ctrl::make(mb.zpu_spi, 1 /*slaveno*/, mb.hw_rev, - dev_addr.cast<double>("master_clock_rate", X300_DEFAULT_TICK_RATE), - dev_addr.cast<double>("dboard_clock_rate", X300_DEFAULT_DBOARD_CLK_RATE), + requested_mcr, + dev_addr.cast<double>("dboard_clock_rate", requested_mcr / 4), dev_addr.cast<double>("system_ref_rate", X300_DEFAULT_SYSREF_RATE)); //Initialize clock source to use internal reference and generate |