aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/dboard_manager/magnesium.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-05-10 18:34:19 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:53 -0800
commite6858a61a81d0ff1762e4b8434fe781acf2fc1ab (patch)
treed34d53d78d40ffc67908f9ae63f216544557366f /mpm/python/usrp_mpm/dboard_manager/magnesium.py
parent13cd22e86763f4bfd9419a573ae96b4748b6781b (diff)
downloaduhd-e6858a61a81d0ff1762e4b8434fe781acf2fc1ab.tar.gz
uhd-e6858a61a81d0ff1762e4b8434fe781acf2fc1ab.tar.bz2
uhd-e6858a61a81d0ff1762e4b8434fe781acf2fc1ab.zip
mpm: Moved some SPI setup code to dboard base
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/magnesium.py')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/magnesium.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/magnesium.py b/mpm/python/usrp_mpm/dboard_manager/magnesium.py
index 612705ce4..eb07864df 100644
--- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py
+++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py
@@ -63,17 +63,7 @@ class Magnesium(DboardManagerBase):
def __init__(self, slot_idx, **kwargs):
super(Magnesium, self).__init__(*args, **kwargs)
self.log = get_logger("Magnesium")
- spi_devices = kwargs['spi_nodes']
# eeprom_data is a tuple (head_dict, raw_data)
- if len(spi_devices) != len(self.spi_chipselect):
- self.log.error("Expected {0} spi devices, found {1} spi devices".format(
- len(self.spi_chipselect), len(spi_devices),
- ))
- raise RuntimeError("Not enough SPI devices found.")
- self._spi_nodes = {}
- for k, v in iteritems(self.spi_chipselect):
- self._spi_nodes[k] = spi_devices[v]
- self.log.debug("spidev device node map: {}".format(self._spi_nodes))
def init_device(self):
"""