[PLATFORM] Centec update E582 driver fan/epprom/sensor (#1332)
This commit is contained in:
parent
b4157e7afa
commit
ff6066db5e
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -71,3 +71,6 @@
|
||||
[submodule "platform/nephos/sonic-platform-modules-ingrasys"]
|
||||
path = platform/nephos/sonic-platform-modules-ingrasys
|
||||
url = https://github.com/Ingrasys-sonic/sonic-platform-modules-ingrasys-nephos.git
|
||||
[submodule "platform/centec/sonic-platform-modules-e582"]
|
||||
path = platform/centec/sonic-platform-modules-e582
|
||||
url = https://github.com/CentecNetworks/sonic-platform-modules-e582
|
||||
|
10
device/centec/x86_64-centec_e582_48x6q-r0/fancontrol
Normal file
10
device/centec/x86_64-centec_e582_48x6q-r0/fancontrol
Normal file
@ -0,0 +1,10 @@
|
||||
# Configuration file generated by pwmconfig, changes will be lost
|
||||
INTERVAL=10
|
||||
DEVPATH=hwmon0= hwmon5=devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-15/15-002f
|
||||
DEVNAME=hwmon0=acpitz hwmon5=adt7470
|
||||
FCTEMPS=hwmon5/device/pwm4=hwmon0/temp1_input hwmon5/device/pwm3=hwmon0/temp1_input hwmon5/device/pwm2=hwmon0/temp1_input hwmon5/device/pwm1=hwmon0/temp1_input
|
||||
FCFANS=hwmon5/device/pwm4=hwmon5/device/fan4_input hwmon5/device/pwm3=hwmon5/device/fan3_input hwmon5/device/pwm2=hwmon5/device/fan2_input+hwmon5/device/fan1_input hwmon5/device/pwm1=hwmon5/device/fan1_input
|
||||
MINTEMP=hwmon5/device/pwm4=20 hwmon5/device/pwm3=20 hwmon5/device/pwm2=20 hwmon5/device/pwm1=20
|
||||
MAXTEMP=hwmon5/device/pwm4=60 hwmon5/device/pwm3=60 hwmon5/device/pwm2=60 hwmon5/device/pwm1=60
|
||||
MINSTART=hwmon5/device/pwm4=150 hwmon5/device/pwm3=150 hwmon5/device/pwm2=150 hwmon5/device/pwm1=150
|
||||
MINSTOP=hwmon5/device/pwm4=0 hwmon5/device/pwm3=0 hwmon5/device/pwm2=0 hwmon5/device/pwm1=0
|
File diff suppressed because it is too large
Load Diff
31
device/centec/x86_64-centec_e582_48x6q-r0/plugins/eeprom.py
Normal file
31
device/centec/x86_64-centec_e582_48x6q-r0/plugins/eeprom.py
Normal file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
#############################################################################
|
||||
# Centec E582-48X6Q
|
||||
#
|
||||
# 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:
|
||||
import exceptions
|
||||
import binascii
|
||||
import time
|
||||
import optparse
|
||||
import warnings
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
from sonic_eeprom import eeprom_base
|
||||
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-0057/eeprom"
|
||||
super(board, self).__init__(self.eeprom_path, 0, '', True)
|
@ -3,6 +3,6 @@
|
||||
SONIC_ONE_IMAGE = sonic-centec.bin
|
||||
$(SONIC_ONE_IMAGE)_MACHINE = centec
|
||||
$(SONIC_ONE_IMAGE)_IMAGE_TYPE = onie
|
||||
$(SONIC_ONE_IMAGE)_INSTALLS += $(CENTEC_SDK_KERNEL)
|
||||
$(SONIC_ONE_IMAGE)_LAZY_INSTALLS += $(CENTEC_E582_48X6Q_PLATFORM_MODULE)
|
||||
$(SONIC_ONE_IMAGE)_DOCKERS += $(SONIC_INSTALL_DOCKER_IMAGES)
|
||||
SONIC_INSTALLERS += $(SONIC_ONE_IMAGE)
|
||||
|
11
platform/centec/platform-modules-centec-e582-48x6q.mk
Normal file
11
platform/centec/platform-modules-centec-e582-48x6q.mk
Normal file
@ -0,0 +1,11 @@
|
||||
# Centec E582-48X6Q Platform modules
|
||||
|
||||
CENTEC_E582_48X6Q_PLATFORM_MODULE_VERSION = 1.0
|
||||
|
||||
export CENTEC_E582_48X6Q_PLATFORM_MODULE_VERSION
|
||||
|
||||
CENTEC_E582_48X6Q_PLATFORM_MODULE = platform-modules-e582-48x6q_$(CENTEC_E582_48X6Q_PLATFORM_MODULE_VERSION)_amd64.deb
|
||||
$(CENTEC_E582_48X6Q_PLATFORM_MODULE)_SRC_PATH = $(PLATFORM_PATH)/sonic-platform-modules-e582
|
||||
$(CENTEC_E582_48X6Q_PLATFORM_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
|
||||
$(CENTEC_E582_48X6Q_PLATFORM_MODULE)_PLATFORM = x86_64-centec_e582_48x6q-r0
|
||||
SONIC_DPKG_DEBS += $(CENTEC_E582_48X6Q_PLATFORM_MODULE)
|
@ -1,4 +1,4 @@
|
||||
include $(PLATFORM_PATH)/sdk.mk
|
||||
include $(PLATFORM_PATH)/platform-modules-centec-e582-48x6q.mk
|
||||
include $(PLATFORM_PATH)/sai.mk
|
||||
include $(PLATFORM_PATH)/docker-orchagent-centec.mk
|
||||
include $(PLATFORM_PATH)/docker-syncd-centec.mk
|
||||
|
@ -1,4 +0,0 @@
|
||||
CENTEC_SDK_KERNEL = centec-gg-sdk3.5-modules-3.16.0-4-amd64.deb
|
||||
$(CENTEC_SDK_KERNEL)_URL = "https://github.com/CentecNetworks/goldengate-sai/raw/master/lib/SONiC_1.0/centec-gg-sdk3.5-modules-3.16.0-4-amd64.deb"
|
||||
|
||||
SONIC_ONLINE_DEBS += $(CENTEC_SDK_KERNEL)
|
1
platform/centec/sonic-platform-modules-e582
Submodule
1
platform/centec/sonic-platform-modules-e582
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 642052d328c3d129c94eabc62d70212cb9c45026
|
Loading…
Reference in New Issue
Block a user