309626effc
This patch adds support for the Altera SoCFPGA target. Both generic target and Terasic SoCkit boards are supported. Signed-off-by: Marek Vasut <marex@denx.de> SVN-Revision: 49367
23 lines
455 B
Bash
23 lines
455 B
Bash
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/socfpga.sh
|
|
|
|
board=$(socfpga_board_name)
|
|
|
|
case "$board" in
|
|
"socfpga-sockit")
|
|
ucidef_set_led_netdev "lan" "LAN" "hps:blue:led0" "eth0"
|
|
ucidef_set_led_mmc "mmc" "MMC" "hps:blue:led1" "mmc0"
|
|
ucidef_set_led_default "health" "health" "hps:blue:led2" "1"
|
|
ucidef_set_led_default "fault" "fault" "hps:blue:led3" "1"
|
|
;;
|
|
esac
|
|
|
|
ucidef_commit_leds
|
|
|
|
exit 0
|