From c30956d9dec3d823355cf513e9c5ef16d4b1f48d Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Mon, 19 Oct 2015 16:43:04 -0700 Subject: cbx/sbx: Properly initialize ATR registers during init --- host/lib/usrp/dboard/db_sbx_common.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/lib') 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; -- cgit v1.2.3