From dea958a0b9589e7b6bfec3e4716685ec19c64fd8 Mon Sep 17 00:00:00 2001 From: michael-west Date: Wed, 31 Jan 2018 17:51:34 -0800 Subject: UBX: Add support for CAL antenna for rev E --- host/lib/usrp/dboard/db_ubx.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'host') diff --git a/host/lib/usrp/dboard/db_ubx.cpp b/host/lib/usrp/dboard/db_ubx.cpp index b1e712b69..0e62dbabf 100644 --- a/host/lib/usrp/dboard/db_ubx.cpp +++ b/host/lib/usrp/dboard/db_ubx.cpp @@ -77,7 +77,8 @@ enum ubx_cpld_field_id_t RXDRV_FORCEON = 21, RXAMP_FORCEON = 22, RXLNA1_FORCEON = 23, - RXLNA2_FORCEON = 24 + RXLNA2_FORCEON = 24, + CAL_ENABLE = 25 }; struct ubx_gpio_field_info_t @@ -738,6 +739,8 @@ private: { //validate input assert_has(ubx_tx_antennas, ant, "ubx tx antenna name"); + set_cpld_field(CAL_ENABLE, (ant == "CAL")); + write_cpld_reg(); } // Set RX antennas -- cgit v1.2.3