forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[platform/broadcom] Add Celestica seastone2 platform module
- Loading branch information
Showing
14 changed files
with
2,745 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
platform drivers for Celestica DX010 and Haliburton for the SONiC project | ||
platform drivers of Celestica network switchs for the SONiC project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
platform/broadcom/sonic-platform-modules-cel/debian/platform-modules-seastone2.init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/bash | ||
|
||
### BEGIN INIT INFO | ||
# Provides: setup-board | ||
# Required-Start: $portmap | ||
# Required-Stop: | ||
# Should-Start: | ||
# Should-Stop: | ||
# Default-Start: S | ||
# Default-Stop: 0 6 | ||
# Short-Description: Setup seastone2 board. | ||
### END INIT INFO | ||
|
||
case "$1" in | ||
start) | ||
echo -n "Setting up board... " | ||
|
||
# Add driver to support HW | ||
modprobe i2c-dev | ||
modprobe ipmi_devintf | ||
modprobe ipmi_si | ||
modprobe baseboard_cpld | ||
modprobe switchboard_fpga | ||
modprobe mc24lc64t | ||
|
||
# Add driver to support TLV - EEPROM | ||
for devnum in 0 1; do | ||
devname=`cat /sys/bus/i2c/devices/i2c-${devnum}/name` | ||
if [[ $devname == 'SMBus iSMT adapter at '* ]]; then | ||
echo 24lc64t 0x56 > /sys/bus/i2c/devices/i2c-${devnum}/new_device | ||
break | ||
fi | ||
done | ||
sleep 1 | ||
echo "done." | ||
;; | ||
|
||
stop) | ||
echo "done." | ||
;; | ||
|
||
force-reload|restart) | ||
echo "Not supported" | ||
;; | ||
|
||
*) | ||
echo "Usage: /etc/init.d/platform-modules-seastone2.init {start|stop}" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
exit 0 |
2 changes: 2 additions & 0 deletions
2
platform/broadcom/sonic-platform-modules-cel/debian/platform-modules-seastone2.install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
seastone2/cfg/seastone2-modules.conf etc/modules-load.d | ||
seastone2/systemd/platform-modules-seastone2.service lib/systemd/system |
3 changes: 3 additions & 0 deletions
3
platform/broadcom/sonic-platform-modules-cel/debian/platform-modules-seastone2.postinst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
depmod -a | ||
systemctl enable platform-modules-seastone2.service | ||
systemctl start platform-modules-seastone2.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
platform/broadcom/sonic-platform-modules-cel/seastone2/cfg/seastone2-modules.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# /etc/modules: kernel modules to load at boot time. | ||
# | ||
# This file contains the names of kernel modules that should be loaded | ||
# at boot time, one per line. Lines beginning with "#" are ignored. | ||
|
||
i2c-i801 | ||
i2c-isch | ||
i2c-ismt | ||
i2c-dev | ||
i2c-mux | ||
i2c-smbus | ||
|
||
i2c-mux-gpio | ||
i2c-mux-pca954x | ||
ipmi_devintf | ||
ipmi_si |
2 changes: 2 additions & 0 deletions
2
platform/broadcom/sonic-platform-modules-cel/seastone2/modules/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
KBUILD_CFLAGS+=-DSEASTONE2 | ||
obj-m := mc24lc64t.o baseboard_cpld.o switchboard_fpga.o |
Oops, something went wrong.