From 102978693676067d36f7cd1f282dd6a802fe5dd4 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 5 Mar 2012 16:50:42 +0000 Subject: remove 3.1 support SVN-Revision: 30823 --- .../brcm63xx/patches-3.1/452-board_V2500V.patch | 111 --------------------- 1 file changed, 111 deletions(-) delete mode 100644 target/linux/brcm63xx/patches-3.1/452-board_V2500V.patch (limited to 'target/linux/brcm63xx/patches-3.1/452-board_V2500V.patch') diff --git a/target/linux/brcm63xx/patches-3.1/452-board_V2500V.patch b/target/linux/brcm63xx/patches-3.1/452-board_V2500V.patch deleted file mode 100644 index a7ab28981e..0000000000 --- a/target/linux/brcm63xx/patches-3.1/452-board_V2500V.patch +++ /dev/null @@ -1,111 +0,0 @@ ---- a/arch/mips/bcm63xx/boards/board_bcm963xx.c -+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c -@@ -853,6 +853,63 @@ static struct board_info __initdata boar - }, - }; - -+ static struct board_info __initdata board_V2500V_BB = { -+ .name = "V2500V_BB", -+ .expected_cpu_id = 0x6348, -+ -+ .has_uart0 = 1, -+ .has_enet0 = 1, -+ .has_enet1 = 1, -+ .has_pci = 1, -+ -+ .enet0 = { -+ .has_phy = 1, -+ .use_internal_phy = 1, -+ }, -+ .enet1 = { -+ .force_speed_100 = 1, -+ .force_duplex_full = 1, -+ }, -+ -+ .leds = { -+ { -+ .name = "power:green", -+ .gpio = 0, -+ .active_low = 1, -+ .default_trigger = "default-on", -+ }, -+ { -+ .name = "power:red", -+ .gpio = 1, -+ .active_low = 1, -+ }, -+ { -+ .name = "adsl", -+ .gpio = 2, -+ .active_low = 1, -+ }, -+ { .name = "ppp", -+ .gpio = 3, -+ .active_low = 1, -+ }, -+ { -+ .name = "wireless", -+ .gpio = 6, -+ .active_low = 1, -+ }, -+ }, -+ .buttons = { -+ { -+ .desc = "reset", -+ .gpio = 31, -+ .active_low = 1, -+ .type = EV_KEY, -+ .code = KEY_RESTART, -+ .threshold = 3, -+ }, -+ }, -+}; -+ - #endif - - /* -@@ -1906,6 +1963,7 @@ static const struct board_info __initdat - &board_96348_D4PW, - &board_spw500v, - &board_96348sv, -+ &board_V2500V_BB, - #endif - - #ifdef CONFIG_BCM63XX_CPU_6358 -@@ -2059,6 +2117,22 @@ void __init board_prom_init(void) - val = bcm_mpi_readl(MPI_CSBASE_REG(0)); - val &= MPI_CSBASE_BASE_MASK; - boot_addr = (u8 *)KSEG1ADDR(val); -+ printk(KERN_INFO PFX "Boot address 0x%08x\n",(unsigned int)boot_addr); -+ -+ /* BT Voyager 2500V (RTA1046VW PCB) has 8 Meg flash used as two */ -+ /* banks of 4 Meg. The byte at 0xBF800000 identifies the back to use.*/ -+ /* Loading firmware from the CFE Prompt always loads to Bank 0 */ -+ /* Do an early check of CFE and then select bank 0 */ -+ -+ if (boot_addr == (u8 *)0xbf800000) { -+ u8 *tmp_boot_addr; -+ tmp_boot_addr = (u8 *)0xbfc00000; // Address of Bank 0 -+ memcpy(&nvram, tmp_boot_addr + BCM963XX_NVRAM_OFFSET, sizeof(nvram)); -+ if (!strcmp(nvram.name, "V2500V_BB")) { -+ printk(KERN_INFO PFX "V2500V: nvram bank 0\n"); -+ boot_addr = (u8 *)0xbfc00000; // Bank 0 -+ } -+ } - - /* dump cfe version */ - cfe = boot_addr + BCM963XX_CFE_VERSION_OFFSET; -@@ -2260,6 +2334,13 @@ int __init board_register_devices(void) - val = bcm_mpi_readl(MPI_CSBASE_REG(0)); - val &= MPI_CSBASE_BASE_MASK; - -+ /* BT Voyager 2500V has 8 Meg flash in two 4 Meg banks */ -+ /* Loading from CFE always uses Bank 0 */ -+ if (!strcmp(board.name, "V2500V_BB")) { -+ printk(KERN_INFO PFX "V2500V: Start in Bank 0\n"); -+ val = val + 0x400000; // Select Bank 0 start address -+ } -+ - mtd_resources[0].start = val; - mtd_resources[0].end = 0x1FFFFFFF; - -- cgit v1.2.3