2d4c8a2ae6
* Add psuutil for S8900-54XC and S8900-64XC. * Update syseeprom to CPU EEPROM for S9130-32X, S9200-64X and S9230-64X. * Update sensors.conf for S9200-64X and S9230-64X. * Update submodule for platform/broadcom/sonic-platform-modules-ingrasys Signed-off-by: Wade He <chihen.he@gmail.com>
23 lines
770 B
Python
23 lines
770 B
Python
#!/usr/bin/env python
|
|
|
|
#############################################################################
|
|
# Ingrasys S9130-32X
|
|
#
|
|
# Platform and model specific eeprom subclass, inherits from the base class,
|
|
# and provides the followings:
|
|
# - the eeprom format definition
|
|
# - specific encoder/decoder if there is special need
|
|
#############################################################################
|
|
|
|
try:
|
|
from sonic_eeprom import eeprom_tlvinfo
|
|
except ImportError, e:
|
|
raise ImportError (str(e) + "- required module not found")
|
|
|
|
|
|
class board(eeprom_tlvinfo.TlvInfoDecoder):
|
|
|
|
def __init__(self, name, path, cpld_root, ro):
|
|
self.eeprom_path = "/sys/class/i2c-adapter/i2c-0/0-0051/eeprom"
|
|
super(board, self).__init__(self.eeprom_path, 0, '', True)
|