From 509c3211d66ec5d3bc741361c06eff993bf39b85 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Thu, 21 May 2015 19:31:54 +0000 Subject: brcm63xx: Add Huawei HG655b support This patch adds support for the Huawei HG655b. Nothing much special in this router, it's just another BCM6368 with a Ralink RT3062 wifi chip and the calibration data embedded in the main flash chip at offset 0x7c0000. There is also configuration data used by the OEM firmware before the cal_data partition, this area is protected by the board_data partition in this patch. Signed-off-by: Daniel Gonzalez Signed-off-by: Jonas Gorski SVN-Revision: 45708 --- target/linux/brcm63xx/base-files/etc/diag.sh | 3 +++ .../linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom | 3 +++ target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds | 3 +++ target/linux/brcm63xx/base-files/etc/uci-defaults/02_network | 1 + 4 files changed, 10 insertions(+) (limited to 'target/linux/brcm63xx/base-files/etc') diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh b/target/linux/brcm63xx/base-files/etc/diag.sh index 03d98b9146..c330674fe3 100644 --- a/target/linux/brcm63xx/base-files/etc/diag.sh +++ b/target/linux/brcm63xx/base-files/etc/diag.sh @@ -89,6 +89,9 @@ set_state() { hg520) status_led="HW520:green:net" ;; + hg655b) + status_led="HW65x:green:power" + ;; p870hw-51a_v2) status_led="P870HW-51a:green:power" ;; diff --git a/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index 9a324eacbd..434748537e 100644 --- a/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -34,6 +34,9 @@ case "$FIRMWARE" in hg556a_c) rt2x00_eeprom_extract "cal_data" 130560 512 ;; + hg655b) + rt2x00_eeprom_extract "cal_data" 0 512 + ;; *) rt2x00_eeprom_die "board $board is not supported yet" ;; diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds b/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds index 58404a165f..b964bdb229 100644 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds @@ -34,6 +34,9 @@ hg556a_*) ucidef_set_led_netdev "lan" "LAN" "HW556:red:dsl" "eth0" ucidef_set_led_usbdev "usb" "USB" "HW556:red:hspa" "1-2" ;; +hg655b) + ucidef_set_led_usbdev "usb" "USB" "HW65x:green:usb" "1-2" + ;; homehub2a) ucidef_set_led_netdev "lan" "LAN" "HOMEHUB2A:blue:broadband" "eth0.1" ucidef_set_led_netdev "wlan0" "WIFI" "HOMEHUB2A:green:wireless" "wlan0" diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network index 814e1003cd..e5880eb414 100644 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network @@ -92,6 +92,7 @@ dsl-274xb-f |\ dsl-275xb-d |\ fast2504n |\ fast2704v2 |\ +hg655b |\ p870hw-51a_v2 |\ vr-3025un |\ vr-3025u) -- cgit v1.2.3