openwrt_archive/target/linux/socfpga/base-files/etc/uci-defaults/01_leds
Luka Perkov 309626effc target: socfpga: Add Altera SoCFPGA support
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
2016-05-10 22:52:00 +00:00

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