Skip to content

Commit

Permalink
Merge pull request #14 from marian-pritsak/master
Browse files Browse the repository at this point in the history
[msn2410 msn2100]: Add sys_eeprom device
  • Loading branch information
dvirl1 authored May 10, 2017
2 parents f1df9a1 + eb1d16d commit ecbfde8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions usr/etc/mlnx/msn2100
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ a2d_swb=/sys/bus/i2c/devices/5-006d
a2d_mnb=/sys/bus/i2c/devices/15-006d
eeprom_mnb=/sys/bus/i2c/devices/16-0051
led=/sys/class/leds/
sys_eeprom=/sys/bus/i2c/devices/8-0051


ACTION=$1
Expand Down Expand Up @@ -381,6 +382,9 @@ connect_platform()
temp_mnb=$tmp_temp_mnb
fi
fi
if [ ! -d /sys/bus/i2c/devices/8-0051 ]; then
echo 24c32 0x51 > /sys/bus/i2c/devices/i2c-8/new_device
fi
}

disconnect_platform()
Expand Down Expand Up @@ -412,6 +416,9 @@ disconnect_platform()
if [ -d $cpld ]; then
echo 0x60 > /sys/bus/i2c/devices/i2c-2/delete_device
fi
if [ -d /sys/bus/i2c/devices/8-0051 ]; then
echo 0x51 > /sys/bus/i2c/devices/i2c-8/delete_device
fi
}

case $ACTION in
Expand Down Expand Up @@ -593,6 +600,12 @@ case $ACTION in
ln -s $attr /bsp/eeprom/cpu_info
fi
fi
if [ ! -L /bsp/eeprom/sys_eeprom ]; then
attr=`find $sys_eeprom/ -name eeprom`
if [ -e $attr ]; then
ln -s $attr /bsp/eeprom/sys_eeprom
fi
fi

# QSFP
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Expand Down

0 comments on commit ecbfde8

Please sign in to comment.