[Platform] Accton as7712 32x support oom (#1327)

* Update sonic-platform-modules-accton to lastest

Signed-off-by: roylee123 <roy_lee@accton.com>

* [platform] accton as7712_32x supports OOM SFP eerpom driver.
Signed-off-by: roylee123 <roy_lee@accton.com>

* [platform] update for as7712-32x to remove local optoe.c file and Makefile.
Signed-off-by: roy_lee <roy_lee@accton.com>
This commit is contained in:
Roy Lee 2018-02-13 21:37:12 +08:00 committed by lguohan
parent d844accb59
commit 02e0fadca2
2 changed files with 7 additions and 7 deletions

View File

@ -53,7 +53,7 @@ class SfpUtil(SfpUtilBase):
_qsfp_ports = range(0, ports_in_block + 1)
def __init__(self):
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/sfp_eeprom'
eeprom_path = '/sys/bus/i2c/devices/{0}-0050/eeprom'
for x in range(0, self._port_end + 1):
port_eeprom_path = eeprom_path.format(self.port_to_i2c_mapping[x+1])
self._port_to_eeprom_mapping[x] = port_eeprom_path
@ -64,9 +64,9 @@ class SfpUtil(SfpUtilBase):
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/{0}-0050/sfp_port_reset"
port_ps = path.format(self.port_to_i2c_mapping[port_num+1])
path = "/sys/bus/i2c/devices/4-0060/module_reset_{0}"
port_ps = path.format(port_num+1)
try:
reg_file = open(port_ps, 'w')
except IOError as e:
@ -93,8 +93,8 @@ class SfpUtil(SfpUtilBase):
if port_num < self._port_start or port_num > self._port_end:
return False
path = "/sys/bus/i2c/devices/{0}-0050/sfp_is_present"
port_ps = path.format(self.port_to_i2c_mapping[port_num+1])
path = "/sys/bus/i2c/devices/4-0060/module_present_{0}"
port_ps = path.format(port_num+1)
try:

@ -1 +1 @@
Subproject commit 3f06d9f5864c9daae4b582d60307ccb6d21c6ceb
Subproject commit bb561272116e1664d4e6f819e452ac3ec5154484