diff options
author | Trung N Tran <trung.tran@ettus.com> | 2017-11-22 16:10:25 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:07 -0800 |
commit | d8ebabaa122ebc46a894f15651cc9b8b442ded05 (patch) | |
tree | b0ca2db8a1721349d1a8867855d6b4fa7ddad80e | |
parent | 201761cfa6d30ecc4d8951ed64e6fb7fce28c83d (diff) | |
download | uhd-d8ebabaa122ebc46a894f15651cc9b8b442ded05.tar.gz uhd-d8ebabaa122ebc46a894f15651cc9b8b442ded05.tar.bz2 uhd-d8ebabaa122ebc46a894f15651cc9b8b442ded05.zip |
mpm: mg: Remove unused spi_factories key
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/magnesium.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/magnesium.py b/mpm/python/usrp_mpm/dboard_manager/magnesium.py index 3206f4829..03ffb658d 100644 --- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py +++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py @@ -35,7 +35,7 @@ from ..sysfs_gpio import SysFSGPIO from usrp_mpm.bfrfs import BufferFS from usrp_mpm.mpmutils import poll_with_timeout -def create_spidev_iface(dev_node): +def create_spidev_iface_lmk(dev_node): """ Create a regs iface from a spidev node """ @@ -54,7 +54,6 @@ def create_spidev_iface(dev_node): SPI_READ_FLAG, SPI_WRIT_FLAG ) - def create_spidev_iface_cpld(dev_node): """ Create a regs iface from a spidev node @@ -313,8 +312,7 @@ class Magnesium(DboardManagerBase): # Class-specific, but constant settings: spi_factories = { "cpld": create_spidev_iface_cpld, - "lmk": create_spidev_iface, - "mykonos": create_spidev_iface, + "lmk": create_spidev_iface_lmk, "phase_dac": create_spidev_iface_phasedac, } #file system path to i2c-adapter/mux @@ -394,7 +392,7 @@ class Magnesium(DboardManagerBase): self.log.trace("Loading SPI devices...") self._spi_ifaces = { key: self.spi_factories[key](self._spi_nodes[key]) - for key in self._spi_nodes + for key in self.spi_factories } self.cpld = MgCPLD(self._spi_ifaces['cpld'], self.log) self.dboard_clk_control = DboardClockControl(self.dboard_ctrl_regs, self.log) |