aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2015-10-19 16:43:04 -0700
committerAshish Chaudhari <ashish@ettus.com>2015-10-19 16:43:04 -0700
commitc30956d9dec3d823355cf513e9c5ef16d4b1f48d (patch)
tree93dbeb57f2c3453181c3454cedde3d557c968f9b /host/lib
parent5ef5dd5f6c6778827124b3d8aa566fcdcae3e4d9 (diff)
downloaduhd-c30956d9dec3d823355cf513e9c5ef16d4b1f48d.tar.gz
uhd-c30956d9dec3d823355cf513e9c5ef16d4b1f48d.tar.bz2
uhd-c30956d9dec3d823355cf513e9c5ef16d4b1f48d.zip
cbx/sbx: Properly initialize ATR registers during init
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/dboard/db_sbx_common.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/db_sbx_common.cpp b/host/lib/usrp/dboard/db_sbx_common.cpp
index a1fc94a97..c575bba01 100644
--- a/host/lib/usrp/dboard/db_sbx_common.cpp
+++ b/host/lib/usrp/dboard/db_sbx_common.cpp
@@ -237,6 +237,9 @@ sbx_xcvr::sbx_xcvr(ctor_args_t args) : xcvr_dboard_base(args){
this->get_iface()->set_gpio_ddr(dboard_iface::UNIT_TX, (TXIO_MASK|TX_LED_IO));
this->get_iface()->set_gpio_ddr(dboard_iface::UNIT_RX, (RXIO_MASK|RX_LED_IO));
+ //Initialize ATR registers after direction and pin ctrl configuration
+ update_atr();
+
UHD_LOGV(often) << boost::format(
"SBX GPIO Direction: RX: 0x%08x, TX: 0x%08x"
) % RXIO_MASK % TXIO_MASK << std::endl;