From 245b96a777afbeb84990ebb377def658879c2fa1 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 23 May 2017 15:16:50 -0700 Subject: mpm: Added auto-loading of dboard-specific overlays --- mpm/python/usrp_mpm/dboard_manager/base.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mpm/python/usrp_mpm/dboard_manager/base.py') diff --git a/mpm/python/usrp_mpm/dboard_manager/base.py b/mpm/python/usrp_mpm/dboard_manager/base.py index c7e116fc0..e16906cb4 100644 --- a/mpm/python/usrp_mpm/dboard_manager/base.py +++ b/mpm/python/usrp_mpm/dboard_manager/base.py @@ -38,6 +38,12 @@ class DboardManagerBase(object): # maps these keys to actual spidev paths. Also throws a warning/error if # the SPI configuration is invalid. spi_chipselect = {} + # Lists device tree overlays that need to be applied before this class can + # be used. List of strings. If strings contain the token {sfp}, it will be + # expanded to the flavour of SFP configuration is (XG, 1G, ...). + # Example: 'magnesium-{sfp}' could get expanded to 'eiscat-XG'. + # Are applied in order. + dt_overlays = [] def __init__(self, slot_idx, **kwargs): self.log = get_logger('dboardManager') -- cgit v1.2.3