aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/periph_manager/n310.py
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2017-11-20 14:35:07 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:57 -0800
commitd0cb6de41061be2a3eaecefe3bd7874e9a7470ff (patch)
tree2397e629f1b7cb66a59c620b49d7ee93e3f083e9 /mpm/python/usrp_mpm/periph_manager/n310.py
parent2eb1a5cfc37606939c2d348273d938e9e97949a5 (diff)
downloaduhd-d0cb6de41061be2a3eaecefe3bd7874e9a7470ff.tar.gz
uhd-d0cb6de41061be2a3eaecefe3bd7874e9a7470ff.tar.bz2
uhd-d0cb6de41061be2a3eaecefe3bd7874e9a7470ff.zip
mpm: PeriphManager decides and applies overlay
Previously, the daughterboard requested an overlay file based on SFP preference using magic values. This commit moves the decision making to the peripheral manager, which uses our singular name (ie 'n3xx' for the N310).
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/n310.py')
-rw-r--r--mpm/python/usrp_mpm/periph_manager/n310.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py
index 912b7678b..7adbc85f0 100644
--- a/mpm/python/usrp_mpm/periph_manager/n310.py
+++ b/mpm/python/usrp_mpm/periph_manager/n310.py
@@ -475,14 +475,26 @@ class n310(PeriphManagerBase):
updateable_components = {
'fpga': {
'callback': "update_fpga",
- 'path': '/lib/firmware/n310.bin',
+ 'path': '/lib/firmware/n3xx.bin',
},
'dts': {
'callback': "update_dts",
- 'path': '/lib/firmware/n310.dts',
+ 'path': '/lib/firmware/n3xx.dts',
},
}
+ @staticmethod
+ def list_required_dt_overlays(eeprom_md, 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 mboard EEPROM
+ device_args -- Arbitrary dictionary of info, typically user-defined
+ """
+ return ['n3xx']
+
def __init__(self, args):
super(n310, self).__init__(args)
self._device_initialized = False