From d884d7af8e5e62a1650884a6ef5d255ff04708b8 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Tue, 31 Oct 2017 16:02:44 -0700 Subject: 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. --- host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp') 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. -- cgit v1.2.3