diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-05-10 12:07:14 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:53 -0800 |
commit | 4efea95324b66477f877d65c2d9c6ce188850174 (patch) | |
tree | 5bd27de40dab19895445e8be0ed52cc601b237c4 /mpm/python/usrp_mpm/dboard_manager/magnesium.py | |
parent | 2270a6b1a670bfa8387004bafdfcf2e74fc90477 (diff) | |
download | uhd-4efea95324b66477f877d65c2d9c6ce188850174.tar.gz uhd-4efea95324b66477f877d65c2d9c6ce188850174.tar.bz2 uhd-4efea95324b66477f877d65c2d9c6ce188850174.zip |
mpm: Enabled mboard EEPROM readout
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager/magnesium.py')
-rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/magnesium.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/magnesium.py b/mpm/python/usrp_mpm/dboard_manager/magnesium.py index de871abf8..612705ce4 100644 --- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py +++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py @@ -50,14 +50,20 @@ class Magnesium(DboardManagerBase): """ Holds all dboard specific information and methods of the magnesium dboard """ - hw_pid = 2 - special_eeprom_addrs = {"special0": "something"} + ######################################################################### + # Overridables + # + # See DboardManagerBase for documentation on these fields + ######################################################################### + pids = [0x150] + # Maps the chipselects to the corresponding devices: spi_chipselect = {"lmk": 0, "mykonos": 1} - def __init__(self, slot_idx, spi_devices, eeprom_data, *args, **kwargs): + 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( |