From 96f012a14a75ddd559be2c22b87dc03025d3ea1e Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 9 Oct 2017 17:46:01 -0700 Subject: mpm: n310: Add mboard EEPROM support This is a specific override for the N310. It returns all the default device info as a dict. --- mpm/python/usrp_mpm/periph_manager/n310.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'mpm') diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py index a920fd35b..f2aa43a84 100644 --- a/mpm/python/usrp_mpm/periph_manager/n310.py +++ b/mpm/python/usrp_mpm/periph_manager/n310.py @@ -511,3 +511,18 @@ class n310(PeriphManagerBase): 'value': str(lock_status).lower(), } + ########################################################################### + # EEPROMs + ########################################################################### + def get_mb_eeprom(self): + """ + Return a dictionary with EEPROM contents. + + All key/value pairs are string -> string. + + We don't actually return the EEPROM contents, instead, we return the + mboard info again. This filters the EEPROM contents to what we think + the user wants to know/see. + """ + return self.mboard_info + -- cgit v1.2.3