[device] Update ag9032v1 and ag9064 modules. (#1690)

* Update ag9032v1 and ag9064 modules.

Signed-off-by: neal tai <neal.tai@deltaww.com>

* Fix the sfputil.py when convert an integer to hexadecimal without the 'L' trailing.

Signed-off-by: neal tai <neal.tai@deltaww.com>
This commit is contained in:
StanleyCi 2018-09-02 04:52:38 +08:00 committed by lguohan
parent fd5a3cf6fb
commit 2cce4aec1c
6 changed files with 2946 additions and 2944 deletions

View File

@ -120,7 +120,7 @@ class SfpUtil(SfpUtilBase):
reg_value = reg_value & ~mask
# Convert our register value back to a hex string and write back
content = hex(reg_value)
content = hex(reg_value).rstrip("L") or "0"
reg_file.seek(0)
reg_file.write(content)

View File

@ -5,5 +5,8 @@
#fan speed monitol start
/usr/share/sonic/device/x86_64-delta_ag9032v1-r0/fancontrol.service /usr/share/sonic/device/x86_64-delta_ag9032v1-r0/fancontrol &
#set led status
/usr/local/bin/led_status.sh &
exit 0

View File

@ -5,7 +5,7 @@ FAN2_EEPROM="-y 32 0x52 0x0a"
FAN3_EEPROM="-y 33 0x53 0x0a"
FAN4_EEPROM="-y 34 0x54 0x0a"
FAN5_EEPROM="-y 35 0x55 0x0a"
LED_CONTROL="/sys/devices/platform/delta-ag9032v1-cpld.0/led_control"
LED_CONTROL="/sys/devices/platform/delta-ag9032v1-swpld.0/led_control"
FAN1_FRONT_RPM="/sys/devices/pci0000:00/0000:00:13.0/i2c-1/i2c-3/i2c-37/37-002c/fan5_input"
FAN1_REAR_RPM="/sys/devices/pci0000:00/0000:00:13.0/i2c-1/i2c-3/i2c-38/38-002d/fan5_input"
FAN2_FRONT_RPM="/sys/devices/pci0000:00/0000:00:13.0/i2c-1/i2c-3/i2c-37/37-002c/fan4_input"

View File

@ -28,7 +28,6 @@ start)
modprobe delta_ag9032v1_cpupld
/usr/local/bin/ag9032v1_platform_init.sh
echo "done."
;;