aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2017-10-31 16:02:44 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:05 -0800
commitd884d7af8e5e62a1650884a6ef5d255ff04708b8 (patch)
treef8b886524a9d31c557c3e4acf159bd15d10d6059 /host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
parentb4ba46cbf2eddc3c79bd10ea2e4cf9ebc8c6914b (diff)
downloaduhd-d884d7af8e5e62a1650884a6ef5d255ff04708b8.tar.gz
uhd-d884d7af8e5e62a1650884a6ef5d255ff04708b8.tar.bz2
uhd-d884d7af8e5e62a1650884a6ef5d255ff04708b8.zip
mpmd: added support for the skip_init key in the device args
Adding skip_init to the device args makes it so rfnoc blocks, etc. are not initialized.
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp')
-rw-r--r--host/lib/usrp/mpmd/mpmd_mboard_impl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
index 0c8e5911a..d06f25939 100644
--- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
+++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
@@ -85,6 +85,11 @@ mpmd_mboard_impl::mpmd_mboard_impl(
_claimer_task = claim_device_and_make_task(rpc, mb_args);
// No one else can now claim the device.
+ if (mb_args_.has_key("skip_init")) {
+ UHD_LOG_DEBUG("MPMD", "Claimed device, but skipped init.");
+ return;
+ }
+
init_device(rpc, mb_args);
// RFNoC block clocks are now on. Noc-IDs can be read back.