1be1c466fe
* Add S8810-32Q platform support * Update sonic-platform-modules-ingrasys submodule * Add sys eeprom plugin for S8810-32Q * Add sfputil plugin for S8810-32Q * Add sensors config for S8810-32Q * Add S8810-32Q HwSku port_config * Add fancontrol config for S8810-32Q Signed-off-by: Jason Tsai <cytsai0409@gmail.com> * Add S8810-32Q platform support * Add sys eeprom plugin for S8810-32Q * Add sfputil plugin for S8810-32Q * Add sensors config for S8810-32Q * Add S8810-32Q HwSku port_config * Add fancontrol config for S8810-32Q Signed-off-by: Jason Tsai <cytsai0409@gmail.com> * Add S8810-32Q platform support * Add S8810-32Q platform support in Makefile Signed-off-by: Jason Tsai <cytsai0409@gmail.com> * Fix build error on S8810 platform driver package Signed-off-by: Jason Tsai <cytsai0409@gmail.com>
25 lines
859 B
Python
25 lines
859 B
Python
#!/usr/bin/env python
|
|
|
|
#############################################################################
|
|
# Ingrasys S8810-32Q
|
|
#
|
|
# 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):
|
|
i2c_bus = "12"
|
|
i2c_addr = "0056"
|
|
self.eeprom_path = "/sys/class/i2c-adapter/i2c-" + i2c_bus + "/" + i2c_bus + "-" + i2c_addr + "/eeprom"
|
|
super(board, self).__init__(self.eeprom_path, 0, '', True)
|