830e1dd560
* [platform]: Add a new supported platform, Delta-ag5648 CPU : Intel Rangeley C2538 Swich ASIC: Broadcom Tomahawk BCM56967 Ports : 48x25G + 6x100G Switch SKU : Delta-ag5648 Signed-off-by: neal tai <neal.tai@deltaww.com> * Delete the file Delete the auto-generated file. * [device]: ag5648 remove all *.cmd files. remove the files under ag5648/modules Signed-off-by: neal tai <neal.tai@deltaww.com> * [device]: ag5648 device drivers 1. Use the common driver dni_emc2305.c ag9032v1 device drivers 1. Move dni_emc2305.c to be the common driver 2. Remove at24.c Signed-off-by: neal tai <neal.tai@deltaww.com>
50 lines
810 B
Bash
Executable File
50 lines
810 B
Bash
Executable File
#!/bin/bash
|
|
|
|
### BEGIN INIT INFO
|
|
# Provides: setup-board
|
|
# Required-Start:
|
|
# Required-Stop:
|
|
# Should-Start:
|
|
# Should-Stop:
|
|
# Default-Start: S
|
|
# Default-Stop: 0 6
|
|
# Short-Description: Setup ag5648 board.
|
|
### END INIT INFO
|
|
|
|
case "$1" in
|
|
start)
|
|
echo -n "Setting up board... "
|
|
depmod -a
|
|
rmmod i2c-i801
|
|
rmmod i2c-ismt
|
|
modprobe i2c-dev
|
|
modprobe i2c-i801
|
|
modprobe i2c-ismt
|
|
modprobe i2c-mux-pca954x
|
|
modprobe dni_ag5648_psu
|
|
modprobe dni_emc2305
|
|
modprobe at24
|
|
modprobe delta_ag5648_platform
|
|
|
|
/usr/local/bin/ag5648_platform_init.sh
|
|
|
|
echo "done."
|
|
;;
|
|
|
|
stop)
|
|
echo "done."
|
|
|
|
;;
|
|
|
|
force-reload|restart)
|
|
echo "Not supported"
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: /etc/init.d/platform-modules-ag5648.init {start|stop}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|