aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-04-03 14:26:58 +0000
committerJohn Crispin <john@openwrt.org>2014-04-03 14:26:58 +0000
commit15139d468c9bcf80e3a110ea3625626d9895b5fe (patch)
treea76fafc500221dc78698c7c3f240d0f1b7369fa5 /target
parent709cab91d217a3ba31629b312a28cd6daef77319 (diff)
downloadupstream-15139d468c9bcf80e3a110ea3625626d9895b5fe.tar.gz
upstream-15139d468c9bcf80e3a110ea3625626d9895b5fe.tar.bz2
upstream-15139d468c9bcf80e3a110ea3625626d9895b5fe.zip
lantiq: BT Home Hub 2B support - userspace
Basic userspace configuration for BT Home Hub 2B Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com> SVN-Revision: 40371
Diffstat (limited to 'target')
-rw-r--r--target/linux/lantiq/base-files/etc/uci-defaults/01_leds7
-rw-r--r--target/linux/lantiq/base-files/etc/uci-defaults/02_network5
2 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
index e525ebdff2..70a14d9bd5 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
@@ -23,6 +23,13 @@ case "$board" in
VG3503J)
ucidef_set_led_netdev "vdsl" "vdsl" "bt:green:dsl" "ptm0"
;;
+BTHOMEHUBV2B)
+ ucidef_set_led_default "power" "power" "soc:blue:power" "1"
+# ucidef_set_led_wlan "wifi" "wifi" "soc:blue:wireless" "phy0radio"
+ ucidef_set_led_wlan "wifi" "wifi" "soc:blue:wireless" "phy0tpt"
+ ucidef_set_led_netdev "internet" "internet" "soc:blue:broadband" "nas0"
+ ucidef_set_led_usbdev "usb" "usb" "soc:blue:phone" "1-1"
+ ;;
*)
;;
esac
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/02_network b/target/linux/lantiq/base-files/etc/uci-defaults/02_network
index 5768336f2a..428089ceb7 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/02_network
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/02_network
@@ -135,6 +135,11 @@ ARV7519*)
lan_mac=$(mtd_get_mac_binary boardconfig 22)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
+
+BTHOMEHUBV2B)
+ lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
+ wan_mac=$(macaddr_add "$lan_mac" 1)
+ ;;
esac
[ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] || set_atm_wan "$vpi" "$vci" "$encaps" "$payload"