From 16dfe8b4d180a6bdededdf342c84d53a6e56021e Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 20 May 2011 10:06:25 +0000 Subject: [PATCH] add support for BT Voyager 2110 (#8810) Signed-off-by: Jonathan McCrohan SVN-Revision: 26959 --- .../base-files/etc/defconfig/V2110/network | 14 ++++ .../etc/uci-defaults/brcm63xx_fixcrc.sh | 2 +- .../linux/brcm63xx/base-files/lib/brcm63xx.sh | 5 ++ .../patches-2.6.37/980-board_BTV2110.patch | 73 +++++++++++++++++++ 4 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 target/linux/brcm63xx/base-files/etc/defconfig/V2110/network create mode 100644 target/linux/brcm63xx/patches-2.6.37/980-board_BTV2110.patch diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/V2110/network b/target/linux/brcm63xx/base-files/etc/defconfig/V2110/network new file mode 100644 index 0000000000..47581409d5 --- /dev/null +++ b/target/linux/brcm63xx/base-files/etc/defconfig/V2110/network @@ -0,0 +1,14 @@ +# Copyright (C) 2011 OpenWrt.org + +config interface loopback + option ifname lo + option proto static + option ipaddr 127.0.0.1 + option netmask 255.0.0.0 + +config interface lan + option ifname eth0 + option type bridge + option proto static + option ipaddr 192.168.1.1 + option netmask 255.255.255.0 diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh b/target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh index 65d00d654d..72ba3cc30b 100755 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh @@ -13,7 +13,7 @@ do_fixcrc() { brcm63xx_detect case "$board_name" in - "bcm63xx/CPVA642 "* | "bcm63xx/MAGIC "* | "bcm63xx/V2500V_BB "* ) + "bcm63xx/CPVA642 "* | "bcm63xx/MAGIC "* | "bcm63xx/V2500V_BB "* | "bcm63xx/V2110 "*) do_fixcrc ;; esac diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh index d2ffabd176..ed3447d013 100755 --- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh +++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh @@ -54,6 +54,11 @@ brcm63xx_detect() { brcm63xx_has_reset_button="true" ifname=eth0 ;; + "bcm63xx/V2110 "*) + status_led="V2110:power:green" + brcm63xx_has_reset_button="true" + ifname=eth0 + ;; "bcm63xx/CPVA642 "* ) status_led="power:green" brcm63xx_has_reset_button="true" diff --git a/target/linux/brcm63xx/patches-2.6.37/980-board_BTV2110.patch b/target/linux/brcm63xx/patches-2.6.37/980-board_BTV2110.patch new file mode 100644 index 0000000000..95b2b33bb6 --- /dev/null +++ b/target/linux/brcm63xx/patches-2.6.37/980-board_BTV2110.patch @@ -0,0 +1,73 @@ +--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c ++++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c +@@ -444,6 +444,62 @@ static struct board_info __initdata boar + }, + }; + ++ ++/* BT Voyager 2110 */ ++static struct board_info __initdata board_V2110 = { ++ .name = "V2110", ++ .expected_cpu_id = 0x6348, ++ ++ .has_uart0 = 1, ++ .has_enet1 = 1, ++ .has_pci = 1, ++ ++ .enet1 = { ++ .force_speed_100 = 1, ++ .force_duplex_full = 1, ++ }, ++ ++ .leds = { ++ { ++ .name = "V2110:green:power", ++ .gpio = 0, ++ .active_low = 1, ++ .default_trigger = "default-on", ++ }, ++ { ++ .name = "V2110:red:power", ++ .gpio = 1, ++ .active_low = 1, ++ }, ++ { ++ .name = "V2110:green:adsl", ++ .gpio = 2, ++ .active_low = 1, ++ }, ++ { .name = "V2110:green:ppp", ++ .gpio = 3, ++ .active_low = 1, ++ }, ++ { ++ .name = "V2110:green:wireless", ++ .gpio = 6, ++ .active_low = 1, ++ }, ++ }, ++ ++ .buttons = { ++ { ++ .desc = "reset", ++ .gpio = 33, ++ .active_low = 1, ++ .type = EV_KEY, ++ .code = KEY_RESTART, ++ .threshold = 3, ++ }, ++ }, ++}; ++ ++ + static struct board_info __initdata board_96348gw = { + .name = "96348GW", + .expected_cpu_id = 0x6348, +@@ -1933,6 +1989,7 @@ static const struct board_info __initdat + &board_96348_D4PW, + &board_spw500v, + &board_ct536_ct5621, ++ &board_V2110, + &board_96348sv, + #endif + -- 2.30.2