aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Kozel <derek.kozel@ettus.com>2018-05-16 19:23:22 +0100
committerMartin Braun <martin.braun@ettus.com>2018-06-12 18:10:09 -0700
commit0c4f1a9127c76de3bee577f58e9bb9ed34477d6f (patch)
tree3c04b3ecebac182f905084748b76a86b8b2a862d
parent00a72d21de58545ab18a55f861ae475a1aa3c78a (diff)
downloaduhd-0c4f1a9127c76de3bee577f58e9bb9ed34477d6f.tar.gz
uhd-0c4f1a9127c76de3bee577f58e9bb9ed34477d6f.tar.bz2
uhd-0c4f1a9127c76de3bee577f58e9bb9ed34477d6f.zip
LMX2592: Fix PFD calculation
-rw-r--r--host/lib/usrp/common/lmx2592.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/common/lmx2592.cpp b/host/lib/usrp/common/lmx2592.cpp
index 4a6cef887..dedc56626 100644
--- a/host/lib/usrp/common/lmx2592.cpp
+++ b/host/lib/usrp/common/lmx2592.cpp
@@ -200,7 +200,7 @@ public:
const int min_n_divider = LMX2592_MIN_N_DIV[_regs.mash_order];
double pfd_freq = input_freq / _regs.pll_r;
- while (pfd_freq * (prescaler + min_n_divider) / vco_multiplier > core_vco_freq) {
+ while (pfd_freq * (prescaler * min_n_divider) / vco_multiplier > core_vco_freq) {
_regs.pll_r++;
pfd_freq = input_freq / _regs.pll_r;
}