bcm63xx: Add nb6 support (BCM6362 SoC base boards)
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / base-files / lib / brcm63xx.sh
index 488aed874ff4736c6606beefb56fbc783a2530d3..11774770df4e3d152d80b312eabacea201034134 100755 (executable)
@@ -13,7 +13,19 @@ brcm63xx_has_reset_button=""
 brcm63xx_detect() {
        board_name=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
 
+       if [ "$board_name" = "96358VW" ] && [ -e /proc/switch/eth1/enable ]; then
+               board_name="DVAG3810BN"
+       fi
+
        case "$board_name" in
+       96328avng)
+               status_led="96328avng::power"
+               ifname=eth0
+               ;;
+       963281TAN)
+               status_led="963281TAN::power"
+               ifname=eth0
+               ;;
        96348GW)
                status_led="power"
                brcm63xx_has_reset_button="true"
@@ -44,7 +56,8 @@ brcm63xx_detect() {
                brcm63xx_has_reset_button="true"
                ifname=eth0
                ;;
-       AW4139)
+       AW4139 |\
+       AW4339U)
                status_led="dsl-274xb:green:power"
                brcm63xx_has_reset_button="true"
                ifname=eth0
@@ -69,6 +82,10 @@ brcm63xx_detect() {
                brcm63xx_has_reset_button="true"
                ifname=eth0
                ;;
+       NB6)
+               brcm63xx_has_reset_button="true"
+               ifname=eth0
+               ;;
        *)
                ;;
        esac