summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Foster <nick@ettus.com>2011-09-20 14:23:29 -0700
committerNick Foster <nick@ettus.com>2011-09-20 14:23:29 -0700
commit1aec4b670607743deb1ac30aef928da8a60456c3 (patch)
tree9fc83ba8bf053cd7fab676aec1774645ee0e9ec0
parent6f9a5b8435dfaf0eff14a9bd7be467f657501a5b (diff)
downloaduhd-1aec4b670607743deb1ac30aef928da8a60456c3.tar.gz
uhd-1aec4b670607743deb1ac30aef928da8a60456c3.tar.bz2
uhd-1aec4b670607743deb1ac30aef928da8a60456c3.zip
B100: LVDS clocking on db outputs
-rw-r--r--host/lib/usrp/b100/clock_ctrl.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/host/lib/usrp/b100/clock_ctrl.cpp b/host/lib/usrp/b100/clock_ctrl.cpp
index c93ff64c7..b1e12773e 100644
--- a/host/lib/usrp/b100/clock_ctrl.cpp
+++ b/host/lib/usrp/b100/clock_ctrl.cpp
@@ -333,10 +333,8 @@ public:
* RX Dboard Clock Control (output 9, divider 3)
**********************************************************************/
void enable_rx_dboard_clock(bool enb){
- _ad9522_regs.out9_format = ad9522_regs_t::OUT9_FORMAT_CMOS;
- _ad9522_regs.out9_cmos_configuration = (enb)?
- ad9522_regs_t::OUT9_CMOS_CONFIGURATION_B_ON :
- ad9522_regs_t::OUT9_CMOS_CONFIGURATION_OFF;
+ _ad9522_regs.out9_format = ad9522_regs_t::OUT9_FORMAT_LVDS;
+ _ad9522_regs.out9_lvds_power_down = !enb;
this->send_reg(0x0F9);
this->latch_regs();
}
@@ -371,10 +369,8 @@ public:
* TX Dboard Clock Control (output 6, divider 2)
**********************************************************************/
void enable_tx_dboard_clock(bool enb){
- _ad9522_regs.out6_format = ad9522_regs_t::OUT6_FORMAT_CMOS;
- _ad9522_regs.out6_cmos_configuration = (enb)?
- ad9522_regs_t::OUT6_CMOS_CONFIGURATION_B_ON :
- ad9522_regs_t::OUT6_CMOS_CONFIGURATION_OFF;
+ _ad9522_regs.out6_format = ad9522_regs_t::OUT6_FORMAT_LVDS;
+ _ad9522_regs.out6_lvds_power_down = !enb;
this->send_reg(0x0F6);
this->latch_regs();
}