diff options
| author | Martin Braun <martin.braun@ettus.com> | 2017-10-12 11:22:18 -0700 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:04:02 -0800 | 
| commit | c8094c0e51bfc104f173a78206dc92a595880034 (patch) | |
| tree | e68063f30bbacca645e3096905143e8964a074b7 /mpm/python/usrp_mpm/dboard_manager | |
| parent | 016866d3f1ea71389b8bc618c9ed1ea7a2fa7155 (diff) | |
| download | uhd-c8094c0e51bfc104f173a78206dc92a595880034.tar.gz uhd-c8094c0e51bfc104f173a78206dc92a595880034.tar.bz2 uhd-c8094c0e51bfc104f173a78206dc92a595880034.zip | |
mpm: mg: Specify the required overlay for FPGA auto-loading
Diffstat (limited to 'mpm/python/usrp_mpm/dboard_manager')
| -rw-r--r-- | mpm/python/usrp_mpm/dboard_manager/magnesium.py | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/mpm/python/usrp_mpm/dboard_manager/magnesium.py b/mpm/python/usrp_mpm/dboard_manager/magnesium.py index 7dc1f4b29..aba810288 100644 --- a/mpm/python/usrp_mpm/dboard_manager/magnesium.py +++ b/mpm/python/usrp_mpm/dboard_manager/magnesium.py @@ -97,6 +97,21 @@ class Magnesium(DboardManagerBase):      # Maps the chipselects to the corresponding devices:      spi_chipselect = {"cpld": 0, "lmk": 1, "mykonos": 2, "phase_dac": 3} +    @staticmethod +    def list_required_dt_overlays(eeprom_md, sfp_config, device_args): +        """ +        Lists device tree overlays that need to be applied before this class can +        be used. List of strings. +        Are applied in order. + +        eeprom_md -- Dictionary of info read out from the dboard EEPROM +        sfp_config -- A string identifying the configuration of the SFP ports. +                      Example: "XG", "HG", "XA", ... +        device_args -- Arbitrary dictionary of info, typically user-defined +        """ +        return ['magnesium-{sfp}'.format(sfp=sfp_config)] +    ### End of overridables ################################################# +    # Class-specific, but constant settings:      spi_factories = {          "cpld": create_spidev_iface_cpld,          "lmk": create_spidev_iface, | 
