Skip to content

Commit

Permalink
use new file location for sys eeprom and sfp eeprom on msn2700 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan committed Jan 4, 2017
1 parent 3c70401 commit d30a448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ssw/ACS-MSN2700/bin/eeprom.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ class board(eeprom_tlvinfo.TlvInfoDecoder):
_TLV_INFO_MAX_LEN = 256

def __init__(self, name, path, cpld_root, ro):
self.eeprom_path = "/sys/class/i2c-adapter/i2c-8/8-0051/eeprom"
self.eeprom_path = "/bsp/eeprom/sys_eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)

4 changes: 2 additions & 2 deletions ssw/ACS-MSN2700/bin/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class sfputil(sfputilbase):

def __init__(self, port_num):
# Override port_to_eeprom_mapping for class initialization
eeprom_path = '/sys/class/i2c-adapter/i2c-2/2-0048/qsfp{0}_eeprom'
eeprom_path = '/bsp/qsfp/qsfp{0}'
for x in range(0, self.port_end + 1):
self.port_to_eeprom_mapping[x] = eeprom_path.format(x + self.eeprom_offset)
sfputilbase.__init__(self, port_num)


0 comments on commit d30a448

Please sign in to comment.