diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-05-23 15:16:50 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:53 -0800 |
commit | 245b96a777afbeb84990ebb377def658879c2fa1 (patch) | |
tree | 7333a32c4bd9381b76aef28db0245e2d30a30ef7 /mpm/python/usrp_mpm/periph_manager | |
parent | e9a1af171eecb333326b3d791fd6516788ec7cac (diff) | |
download | uhd-245b96a777afbeb84990ebb377def658879c2fa1.tar.gz uhd-245b96a777afbeb84990ebb377def658879c2fa1.tar.bz2 uhd-245b96a777afbeb84990ebb377def658879c2fa1.zip |
mpm: Added auto-loading of dboard-specific overlays
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/base.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 022464476..a9259f304 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -25,6 +25,7 @@ from ..mpmlog import get_logger from .udev import get_eeprom_paths from .udev import get_spidev_nodes from usrp_mpm import net +from usrp_mpm import dtoverlay EEPROM_DEFAULT_HEADER = struct.Struct("!I I") @@ -340,11 +341,15 @@ class PeriphManagerBase(object): if db_class is None: self.log.warning("Could not identify daughterboard class for PID {:04X}!".format(db_pid)) continue + self.log.trace("Dboard requires device tree overlays: {}".format( + db_class.dt_overlays + )) + for overlay in db_class.dt_overlays: + # FIXME don't hardcode XG + dtoverlay.apply_overlay_safe(overlay.format(sfp="XG")) self.dboards.append(db_class(dboard_idx, **dboard_info)) self.log.info("Found {} daughterboard(s).".format(len(self.dboards))) - # self.overlays = "" - def _init_interfaces(self): """ Initialize the list of network interfaces |