2020-04-03 10:26:23 +00:00
|
|
|
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
|
|
|
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
bcm63xx: add support for Innacomm W3400V6
Innacomm W3400V6 is an xDSL B/G wireless router based on Broadcom BCM6328 SoC.
Hardware:
SoC: Broadcom BCM6328
CPU: BMIPS4350 V8.0, 320 MHz, 1 core
Flash: SPI-NOR 8MB, MX25L6406E
RAM: 64 MB
Ethernet: 4x 10/100 Mbps
Switch: Integrated
Wireless: 802.11b/g, BCM4312
LEDs/Buttons: 9x / 2x
Flash instruction, web UI:
1) Set a static IP on your computer compatible
with 192.168.1.1, i.e 192.168.1.100
2) Connect the ethernet cable from your computer to the router.
3) Make sure the router is powered off.
4) Press the reset button, don't release it yet!
5) While pressing reset, power on the router.
6) Wait 10 seconds or more.
Note: The power LED is red at first then turns to solid
green when ready.
8) Release the reset button.
9) Browse to 192.168.1.1
10) Select .bin file.
10) Upgrade the image.
11) Wait for it to reboot.
Signed-off-by: Sieng Piaw Liew <liew.s.piaw@gmail.com>
[Ammend commit description, merge patches, DT improvements]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2020-10-09 09:04:03 +00:00
|
|
|
@@ -3244,6 +3244,22 @@ void __init board_bcm963xx_init(void)
|
2020-04-03 10:26:23 +00:00
|
|
|
val &= MPI_CSBASE_BASE_MASK;
|
|
|
|
}
|
|
|
|
boot_addr = (u8 *)KSEG1ADDR(val);
|
|
|
|
+ pr_info("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 = (u8*)0xbfc00000;
|
|
|
|
+
|
|
|
|
+ bcm63xx_nvram_init(tmp_boot_addr + BCM963XX_NVRAM_OFFSET);
|
|
|
|
+ if (!strcmp(bcm63xx_nvram_get_name(), "V2500V_BB")) {
|
|
|
|
+ pr_info("V2500V: nvram bank 0\n");
|
|
|
|
+ boot_addr = tmp_boot_addr;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/* dump cfe version */
|
|
|
|
cfe = boot_addr + BCM963XX_CFE_VERSION_OFFSET;
|
|
|
|
--- a/arch/mips/bcm63xx/dev-flash.c
|
|
|
|
+++ b/arch/mips/bcm63xx/dev-flash.c
|
|
|
|
@@ -21,6 +21,7 @@
|
|
|
|
#include <linux/spi/spi.h>
|
|
|
|
#include <linux/spi/flash.h>
|
|
|
|
|
|
|
|
+#include <bcm63xx_board.h>
|
|
|
|
#include <bcm63xx_cpu.h>
|
|
|
|
#include <bcm63xx_dev_flash.h>
|
|
|
|
#include <bcm63xx_regs.h>
|
2020-05-14 16:19:35 +00:00
|
|
|
@@ -256,6 +257,13 @@ int __init bcm63xx_flash_register(void)
|
2020-04-03 10:26:23 +00:00
|
|
|
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_get_name(), "V2500V_BB")) {
|
|
|
|
+ pr_info("V2500V: Start in Bank 0\n");
|
|
|
|
+ val = val + 0x400000; // Select Bank 0 start address
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
mtd_resources[0].start = val;
|
|
|
|
mtd_resources[0].end = 0x1FFFFFFF;
|
|
|
|
}
|