diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-04-26 16:23:10 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:52 -0800 |
commit | 658bdb71d89d1d8cd4be88f7f1b28c44682f5850 (patch) | |
tree | 440c30d9d40e4a6120185a5fc0df71f4e0d7de5c /mpm/python/usrp_mpm/dboard_manager | |
parent | cf6619992ac0d9ed2d2c99ab17a98023ee162fef (diff) | |
download | uhd-658bdb71d89d1d8cd4be88f7f1b28c44682f5850.tar.gz uhd-658bdb71d89d1d8cd4be88f7f1b28c44682f5850.tar.bz2 uhd-658bdb71d89d1d8cd4be88f7f1b28c44682f5850.zip |
mpm: Added more generic UIO lookup
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager')
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/magnesium.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/magnesium.py b/mpm/python/usrp_mpm/dboard_manager/magnesium.py index 45a19ded6..cee2f0915 100644 --- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py +++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py @@ -23,7 +23,7 @@ import time from . import lib # Pulls in everything from C++-land from .base import DboardManagerBase from .. import nijesdcore -from ..uio import uio +from ..uio import UIO class magnesium(DboardManagerBase): """ @@ -60,7 +60,7 @@ class magnesium(DboardManagerBase): Execute necessary init dance to bring up dboard """ self.log.debug("initialize hardware") - self._device = lib.dboards.magnesium_periph_manager( + self._device = lib.dboards.magnesium_manager( # self.lmk.encode('ascii'), self.mykonos.encode('ascii') '/dev/spidev0.0', '/dev/spidev0.1', @@ -69,13 +69,10 @@ class magnesium(DboardManagerBase): self.mykonos = self._device.get_radio_ctrl() # uio_path, uio_size = get_uio_node("misc-enet-regs0") - self.log.debug("getting Mg A uio") - uio_path = "/dev/uio2" # TODO use labels - uio_size = 0x4000 - self.log.debug("got uio_path and size") - self.uio = uio(uio_path, uio_size, read_only=False) - self.log.info("got my uio") - self.init_jesd(self.uio) + self.log.debug("Getting Mg A uio...") + self.radio_regs = UIO(label="jesd204b-regs", read_only=False) + self.log.info("Radio-register UIO object successfully generated!") + self.init_jesd(self.radio_regs) def init_jesd(self, uio): """ |