aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2018-07-23 13:41:58 -0700
committerMartin Braun <martin.braun@ettus.com>2018-07-23 18:11:32 -0700
commita39b6680a560517a61be2a63c629d90d0cca6b08 (patch)
tree98881c503f06cbdf51c459a21e35e6dffbc8e1ef /mpm
parent458c1bb1229ab52bdac2d26c973a54780e925704 (diff)
downloaduhd-a39b6680a560517a61be2a63c629d90d0cca6b08.tar.gz
uhd-a39b6680a560517a61be2a63c629d90d0cca6b08.tar.bz2
uhd-a39b6680a560517a61be2a63c629d90d0cca6b08.zip
mpm: n3xx: Allow to run without daughterboards connected
The product ID will fall back to the motherboard ID (n300, n310). This will load FPGA images even if there is no daughterboard connected.
Diffstat (limited to 'mpm')
-rw-r--r--mpm/python/usrp_mpm/periph_manager/n3xx.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n3xx.py b/mpm/python/usrp_mpm/periph_manager/n3xx.py
index 783ea4ca2..c770ecfd4 100644
--- a/mpm/python/usrp_mpm/periph_manager/n3xx.py
+++ b/mpm/python/usrp_mpm/periph_manager/n3xx.py
@@ -92,7 +92,9 @@ class n3xx(ZynqComponents, PeriphManagerBase):
# manager class. The format of this map is:
# (motherboard product code, (Slot-A DB PID, [Slot-B DB PID])) -> product
product_map = {
+ ('n300', tuple()) : 'n300',
('n300', (MG_PID, )): 'n300', # Slot B is empty
+ ('n310', tuple()) : 'n310',
('n310', (MG_PID, MG_PID)): 'n310',
('n310', (MG_PID, )): 'n310', # If Slot B is empty, we can
# still use the n310.bin image.