Skip to content

Commit

Permalink
[platform/cel-blackstone]: update init script to enable i2c mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirut Getbamrung committed Sep 27, 2021
1 parent 62e6580 commit f7b0da1
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,26 @@ start)
decode-syseeprom --init 2> /dev/null &

# Attach switchboard CPLD i2c device
# echo switch_cpld 0x30 > /sys/bus/i2c/devices/i2c-4/new_device
echo switch_cpld 0x30 > /sys/bus/i2c/devices/i2c-3/new_device

# Attach QSFP-DD i2c devices
echo pca9548 0x70 > /sys/bus/i2c/devices/i2c-1/new_device
echo pca9548 0x71 > /sys/bus/i2c/devices/i2c-1/new_device
echo pca9548 0x72 > /sys/bus/i2c/devices/i2c-4/new_device
echo pca9548 0x73 > /sys/bus/i2c/devices/i2c-4/new_device

# Attach Optical Module EEPROM
# use optoe2 for SFP+.
# for i in {1..2}
# do
# echo optoe2 0x50 > /sys/bus/i2c/devices/i2c-$i/new_device
# done

# Attach QSFP-DD i2c devices
# echo pca9548 0x70 > /sys/bus/i2c/devices/i2c-3/new_device
# echo pca9548 0x71 > /sys/bus/i2c/devices/i2c-3/new_device
# echo pca9548 0x72 > /sys/bus/i2c/devices/i2c-6/new_device
# echo pca9548 0x73 > /sys/bus/i2c/devices/i2c-6/new_device
for i in {5..6}
do
echo optoe2 0x50 > /sys/bus/i2c/devices/i2c-$i/new_device
done

# use optoe3 for QSFP-DD.
# for i in {7..38}
# do
# echo optoe3 0x50 > /sys/bus/i2c/devices/i2c-$i/new_device
# done
for i in {7..38}
do
echo optoe3 0x50 > /sys/bus/i2c/devices/i2c-$i/new_device
done

#/bin/sh /usr/local/bin/platform_api_mgnt.sh init

Expand Down

0 comments on commit f7b0da1

Please sign in to comment.