File tree 1 file changed +15
-0
lines changed
platform/broadcom/sonic-platform-modules-dell/s6000/scripts
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,20 @@ remove_i2c_devices() {
60
60
done
61
61
}
62
62
63
+ # Enable/Disable low power mode on all QSFP ports
64
+ switch_board_qsfp_lpmode () {
65
+ case $1 in
66
+ " enable" ) value=0xffff
67
+ ;;
68
+ " disable" ) value=0x0
69
+ ;;
70
+ * ) echo " s6000_platform: switch_board_qsfp_lpmode: invalid command $1 !"
71
+ return
72
+ ;;
73
+ esac
74
+ echo $value > /sys/bus/platform/devices/dell-s6000-cpld.0/qsfp_lpmode
75
+ }
76
+
63
77
install_python_api_package () {
64
78
device=" /usr/share/sonic/device"
65
79
platform=$( /usr/local/bin/sonic-cfggen -H -v DEVICE_METADATA.localhost.platform)
@@ -86,6 +100,7 @@ if [[ "$1" == "init" ]]; then
86
100
add_i2c_devices
87
101
88
102
/usr/local/bin/set-fan-speed 15000
103
+ switch_board_qsfp_lpmode " disable"
89
104
/usr/local/bin/reset-qsfp
90
105
elif [[ " $1 " == " deinit" ]]; then
91
106
remove_i2c_devices
You can’t perform that action at this time.
0 commit comments