brcm63xx: add kernel space and image support for the Netgear CVG834G
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 6 Jun 2013 22:22:14 +0000 (22:22 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 6 Jun 2013 22:22:14 +0000 (22:22 +0000)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36876 3c298f89-4303-0410-b956-a3cf2f4a3e73

43 files changed:
target/linux/brcm63xx/image/Makefile
target/linux/brcm63xx/patches-3.8/500-board-D4PW.patch
target/linux/brcm63xx/patches-3.8/501-board-NB4.patch
target/linux/brcm63xx/patches-3.8/502-board-96338W2_E7T.patch
target/linux/brcm63xx/patches-3.8/503-board-CPVA642.patch
target/linux/brcm63xx/patches-3.8/504-board_dsl_274xb_rev_c.patch
target/linux/brcm63xx/patches-3.8/505-board_spw500v.patch
target/linux/brcm63xx/patches-3.8/506-board_gw6200_gw6000.patch
target/linux/brcm63xx/patches-3.8/507-board-MAGIC.patch
target/linux/brcm63xx/patches-3.8/508-board_hw553.patch
target/linux/brcm63xx/patches-3.8/509-board_rta1320_16m.patch
target/linux/brcm63xx/patches-3.8/510-board_spw303v.patch
target/linux/brcm63xx/patches-3.8/511-board_V2500V.patch
target/linux/brcm63xx/patches-3.8/512-board_BTV2110.patch
target/linux/brcm63xx/patches-3.8/514-board_ct536_ct5621.patch
target/linux/brcm63xx/patches-3.8/515-board_DWV-S0_fixes.patch
target/linux/brcm63xx/patches-3.8/516-board_96348A-122.patch
target/linux/brcm63xx/patches-3.8/517-RTA1205W_16_uart_fixes.patch
target/linux/brcm63xx/patches-3.8/519_board_CPVA502plus.patch
target/linux/brcm63xx/patches-3.8/520-bcm63xx-add-support-for-96368MVWG-board.patch
target/linux/brcm63xx/patches-3.8/521-bcm63xx-add-support-for-96368MVNgr-board.patch
target/linux/brcm63xx/patches-3.8/522-MIPS-BCM63XX-add-96328avng-reference-board.patch
target/linux/brcm63xx/patches-3.8/523-MIPS-BCM63XX-add-963281TAN-reference-board.patch
target/linux/brcm63xx/patches-3.8/524-board_dsl_274xb_rev_f.patch
target/linux/brcm63xx/patches-3.8/525-board_96348w3.patch
target/linux/brcm63xx/patches-3.8/526-board_CT6373-1.patch
target/linux/brcm63xx/patches-3.8/527-board_dva-g3810bn-tl-1.patch
target/linux/brcm63xx/patches-3.8/528-board_nb6.patch
target/linux/brcm63xx/patches-3.8/529-board_fast2604.patch
target/linux/brcm63xx/patches-3.8/530-board_963281T_TEF.patch
target/linux/brcm63xx/patches-3.8/531-board_96328A-1441N1.patch
target/linux/brcm63xx/patches-3.8/532-board_96328a-1241N.patch
target/linux/brcm63xx/patches-3.8/533-board_rta770bw.patch
target/linux/brcm63xx/patches-3.8/534-board_hw556.patch
target/linux/brcm63xx/patches-3.8/535-board_rta770w.patch
target/linux/brcm63xx/patches-3.8/550-alice_gate2_leds.patch
target/linux/brcm63xx/patches-3.8/551-96348gw_a_leds.patch
target/linux/brcm63xx/patches-3.8/552-board_96348gw-10_reset_button.patch
target/linux/brcm63xx/patches-3.8/553-boards_probe_switch.patch
target/linux/brcm63xx/patches-3.8/554-board_DWVS0_leds_buttons.patch
target/linux/brcm63xx/patches-3.8/555-netgear_CVG834G_E15R3921.patch [new file with mode: 0644]
target/linux/brcm63xx/patches-3.8/801-ssb_export_fallback_sprom.patch
target/linux/brcm63xx/patches-3.9/555-netgear_CVG834G_E15R3921.patch [new file with mode: 0644]

index 69621dc..7544607 100755 (executable)
@@ -11,6 +11,9 @@ LOADADDR = 0x80010000         # RAM start + 16M
 KERNEL_ENTRY = $(LOADADDR)     # Newer kernels add a jmp to the kernel_entry at the start of the binary
 RAMSIZE = 0x01000000           # 64MB
 
+DROP_SECTIONS := .reginfo .mdebug .comment .note .pdr .options .MIPS.options
+OBJCOPY_BIN := $(TARGET_CROSS)objcopy -S -O binary $(addprefix --remove-section=,$(DROP_SECTIONS))
+
 LOADER_MAKEOPTS= \
                KDIR=$(KDIR) \
                LOADADDR=$(LOADADDR) \
@@ -119,11 +122,19 @@ define Image/Build/CFEOLD
                -o $(BIN_DIR)/openwrt-$(2)-$(1)-cfe.bin
 endef
 
+define Image/Build/HCS
+       $(STAGING_DIR_HOST)/bin/hcsmakeimage --magic_byte=$(3) \
+               --rev_maj=$(4) --rev_min=$(5) --input_file=$(6) \
+               --output_file=$(BIN_DIR)/openwrt-$(2)-$(1).bin
+endef
+
 define Build/Clean
        $(MAKE) -C lzma-loader clean
 endef
 
 define Image/Prepare
+       # Binary kernel
+       $(OBJCOPY_BIN) $(LINUX_DIR)/vmlinux $(KDIR)/vmlinux.bin
        # Standard LZMA kernel
        cat $(KDIR)/vmlinux | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
 
@@ -279,6 +290,9 @@ define Image/Build
 
        # T-Com Speedport W 303V Typ B
        $(call Image/Build/SPW303V,$(1),96358-502V,6358,SPW303V)
+
+       # Netgear CVG834G
+       $(call Image/Build/HCS,$(1),cvg834g,a020,0001,0022,$(KDIR)/vmlinux.bin)
   endif
 endef
 
index 8b17569..5db8c56 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -520,6 +520,56 @@ static struct board_info __initdata boar
+@@ -522,6 +522,56 @@ static struct board_info __initdata boar
  
        .has_ohci0 = 1,
  };
@@ -57,7 +57,7 @@
  #endif
  
  /*
-@@ -694,6 +744,7 @@ static const struct board_info __initcon
+@@ -696,6 +746,7 @@ static const struct board_info __initcon
        &board_DV201AMR,
        &board_96348gw_a,
        &board_rta1025w_16,
index 99b7e43..759ba43 100644 (file)
@@ -9,9 +9,9 @@
  #include <asm/addrspace.h>
  #include <bcm63xx_board.h>
  #include <bcm63xx_cpu.h>
-@@ -46,6 +48,12 @@
- #define CFE_OFFSET_64K                        0x10000
+@@ -48,6 +50,12 @@
  #define CFE_OFFSET_128K                       0x20000
+ #define HCS_OFFSET_128K                       0x20000
  
 +#define NB4_PID_OFFSET                0xff80
 +#define NB4_74X164_GPIO_BASE  64
@@ -22,7 +22,7 @@
  static struct board_info board;
  
  /*
-@@ -719,6 +727,596 @@ static struct board_info __initdata boar
+@@ -721,6 +729,596 @@ static struct board_info __initdata boar
  
        .has_ohci0                      = 1,
  };
  #endif
  
  /*
-@@ -752,6 +1350,11 @@ static const struct board_info __initcon
+@@ -754,6 +1352,11 @@ static const struct board_info __initcon
        &board_96358vw2,
        &board_AGPFS0,
        &board_DWVS0,
  #endif
  };
  
-@@ -806,6 +1409,16 @@ static void __init boardid_fixup(u8 *boo
+@@ -808,6 +1411,16 @@ static void __init boardid_fixup(u8 *boo
        struct bcm_tag *tag = (struct bcm_tag *)(boot_addr + CFE_OFFSET_64K);
        char *board_name = (char *)bcm63xx_nvram_get_name();
  
index 2420ab6..c152d8f 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -191,6 +191,40 @@ static struct board_info __initdata boar
+@@ -193,6 +193,40 @@ static struct board_info __initdata boar
                },
        },
  };
@@ -41,7 +41,7 @@
  #endif
  
  /*
-@@ -1329,6 +1363,7 @@ static const struct board_info __initcon
+@@ -1331,6 +1365,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6338
        &board_96338gw,
        &board_96338w,
index ec75cfe..8770ef8 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -718,6 +718,98 @@ static struct board_info __initdata boar
+@@ -720,6 +720,98 @@ static struct board_info __initdata boar
        },
  };
  
@@ -99,7 +99,7 @@
  static struct board_info __initdata board_AGPFS0 = {
        .name                           = "AGPF-S0",
        .expected_cpu_id                = 0x6358,
-@@ -1384,6 +1476,7 @@ static const struct board_info __initcon
+@@ -1386,6 +1478,7 @@ static const struct board_info __initcon
        &board_96358vw,
        &board_96358vw2,
        &board_AGPFS0,
index 50fac61..138e551 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -854,6 +854,61 @@ static struct board_info __initdata boar
+@@ -856,6 +856,61 @@ static struct board_info __initdata boar
        .has_ohci0                      = 1,
  };
  
@@ -62,7 +62,7 @@
  struct spi_gpio_platform_data nb4_spi_gpio_data = {
        .sck            = NB4_SPI_GPIO_CLK,
        .mosi           = NB4_SPI_GPIO_MOSI,
-@@ -1478,6 +1533,7 @@ static const struct board_info __initcon
+@@ -1480,6 +1535,7 @@ static const struct board_info __initcon
        &board_AGPFS0,
        &board_CPVA642,
        &board_DWVS0,
index 6abdac3..09f1876 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -612,6 +612,67 @@ static struct board_info __initdata boar
+@@ -614,6 +614,67 @@ static struct board_info __initdata boar
                },
        },
  };
@@ -68,7 +68,7 @@
  #endif
  
  /*
-@@ -1525,6 +1586,7 @@ static const struct board_info __initcon
+@@ -1527,6 +1588,7 @@ static const struct board_info __initcon
        &board_96348gw_a,
        &board_rta1025w_16,
        &board_96348_D4PW,
index 6635590..4135247 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -479,6 +479,112 @@ static struct board_info __initdata boar
+@@ -481,6 +481,112 @@ static struct board_info __initdata boar
        },
  };
  
  static struct board_info __initdata board_FAST2404 = {
        .name                           = "F@ST2404",
        .expected_cpu_id                = 0x6348,
-@@ -1579,6 +1685,8 @@ static const struct board_info __initcon
+@@ -1581,6 +1687,8 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6348
        &board_96348r,
        &board_96348gw,
index 6bd1dff..f7f65de 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -779,6 +779,78 @@ static struct board_info __initdata boar
+@@ -781,6 +781,78 @@ static struct board_info __initdata boar
                },
        },
  };
@@ -79,7 +79,7 @@
  #endif
  
  /*
-@@ -1695,6 +1767,7 @@ static const struct board_info __initcon
+@@ -1697,6 +1769,7 @@ static const struct board_info __initcon
        &board_rta1025w_16,
        &board_96348_D4PW,
        &board_spw500v,
index f26017e..b26fde6 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1737,6 +1737,82 @@ static struct board_info __initdata boar
+@@ -1739,6 +1739,82 @@ static struct board_info __initdata boar
        .spis = nb4_spi_devices,
        .num_spis = ARRAY_SIZE(nb4_spi_devices),
  };
@@ -83,7 +83,7 @@
  #endif
  
  /*
-@@ -1782,6 +1858,7 @@ static const struct board_info __initcon
+@@ -1784,6 +1860,7 @@ static const struct board_info __initcon
        &board_nb4_ser_r2,
        &board_nb4_fxc_r1,
        &board_nb4_fxc_r2,
index a596f45..d91ad06 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -225,6 +225,45 @@ static struct board_info __initdata boar
+@@ -227,6 +227,45 @@ static struct board_info __initdata boar
                },
        },
  };
@@ -46,7 +46,7 @@
  #endif
  
  /*
-@@ -1826,6 +1865,7 @@ static const struct board_info __initcon
+@@ -1828,6 +1867,7 @@ static const struct board_info __initcon
        &board_96338gw,
        &board_96338w,
        &board_96338w2_e7t,
index d21358e..e659e9f 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1852,6 +1852,72 @@ static struct board_info __initdata boar
+@@ -1854,6 +1854,72 @@ static struct board_info __initdata boar
                },
        },
  };
@@ -73,7 +73,7 @@
  #endif
  
  /*
-@@ -1899,6 +1965,7 @@ static const struct board_info __initcon
+@@ -1901,6 +1967,7 @@ static const struct board_info __initcon
        &board_nb4_fxc_r1,
        &board_nb4_fxc_r2,
        &board_HW553,
index a2d78a6..4a92185 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -890,6 +890,65 @@ static struct board_info __initdata boar
+@@ -892,6 +892,65 @@ static struct board_info __initdata boar
                },
        },
  };
@@ -66,7 +66,7 @@
  #endif
  
  /*
-@@ -1950,6 +2009,7 @@ static const struct board_info __initcon
+@@ -1952,6 +2011,7 @@ static const struct board_info __initcon
        &board_96348_D4PW,
        &board_spw500v,
        &board_96348sv,
@@ -74,7 +74,7 @@
  #endif
  
  #ifdef CONFIG_BCM63XX_CPU_6358
-@@ -2070,6 +2130,22 @@ void __init board_prom_init(void)
+@@ -2073,6 +2133,22 @@ void __init board_prom_init(void)
                val &= MPI_CSBASE_BASE_MASK;
        }
        boot_addr = (u8 *)KSEG1ADDR(val);
  #include <bcm63xx_cpu.h>
  #include <bcm63xx_dev_flash.h>
  #include <bcm63xx_dev_hsspi.h>
-@@ -157,6 +158,13 @@ int __init bcm63xx_flash_register(int nu
+@@ -158,6 +159,13 @@ int __init bcm63xx_flash_register(int nu
                val = bcm_mpi_readl(MPI_CSBASE_REG(0));
                val &= MPI_CSBASE_BASE_MASK;
  
index 53f0377..a20503e 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -450,6 +450,64 @@ static struct board_info __initdata boar
+@@ -452,6 +452,64 @@ static struct board_info __initdata boar
        },
  };
  
@@ -65,7 +65,7 @@
  static struct board_info __initdata board_96348gw = {
        .name                           = "96348GW",
        .expected_cpu_id                = 0x6348,
-@@ -2010,6 +2068,7 @@ static const struct board_info __initcon
+@@ -2012,6 +2070,7 @@ static const struct board_info __initcon
        &board_spw500v,
        &board_96348sv,
        &board_V2500V_BB,
index 25d9847..2a4d83b 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -508,6 +508,51 @@ static struct board_info __initdata boar
+@@ -510,6 +510,51 @@ static struct board_info __initdata boar
  };
  
  
@@ -52,7 +52,7 @@
  static struct board_info __initdata board_96348gw = {
        .name                           = "96348GW",
        .expected_cpu_id                = 0x6348,
-@@ -2069,6 +2114,7 @@ static const struct board_info __initcon
+@@ -2071,6 +2116,7 @@ static const struct board_info __initcon
        &board_96348sv,
        &board_V2500V_BB,
        &board_V2110,
index cad84e7..b2a1714 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1277,6 +1277,8 @@ static struct board_info __initdata boar
+@@ -1279,6 +1279,8 @@ static struct board_info __initdata boar
        .name                           = "DWV-S0",
        .expected_cpu_id                = 0x6358,
  
@@ -9,7 +9,7 @@
        .has_enet0                      = 1,
        .has_enet1                      = 1,
        .has_pci                        = 1,
-@@ -1292,6 +1294,7 @@ static struct board_info __initdata boar
+@@ -1294,6 +1296,7 @@ static struct board_info __initdata boar
        },
  
        .has_ohci0                      = 1,
index 823a587..b0900de 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -553,6 +553,69 @@ static struct board_info __initdata boar
+@@ -555,6 +555,69 @@ static struct board_info __initdata boar
        },
  };
  
@@ -70,7 +70,7 @@
  static struct board_info __initdata board_96348gw = {
        .name                           = "96348GW",
        .expected_cpu_id                = 0x6348,
-@@ -2118,6 +2181,7 @@ static const struct board_info __initcon
+@@ -2120,6 +2183,7 @@ static const struct board_info __initcon
        &board_V2500V_BB,
        &board_V2110,
        &board_ct536_ct5621,
index 7f0ee27..4c22d7b 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -818,6 +818,7 @@ static struct board_info __initdata boar
+@@ -820,6 +820,7 @@ static struct board_info __initdata boar
        .name                           = "RTA1025W_16",
        .expected_cpu_id                = 0x6348,
  
index 6dd246b..5ca2376 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1116,6 +1116,46 @@ static struct board_info __initdata boar
+@@ -1118,6 +1118,46 @@ static struct board_info __initdata boar
                },
        },
  };
@@ -47,7 +47,7 @@
  #endif
  
  /*
-@@ -2183,6 +2223,7 @@ static const struct board_info __initcon
+@@ -2185,6 +2225,7 @@ static const struct board_info __initcon
        &board_V2110,
        &board_ct536_ct5621,
        &board_96348A_122,
index c3b2c16..bb42133 100644 (file)
@@ -10,7 +10,7 @@ Subject: [PATCH 32/63] bcm63xx: add support for 96368MVWG board.
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2190,6 +2190,78 @@ static struct board_info __initdata boar
+@@ -2192,6 +2192,78 @@ static struct board_info __initdata boar
  #endif
  
  /*
@@ -89,7 +89,7 @@ Subject: [PATCH 32/63] bcm63xx: add support for 96368MVWG board.
   * all boards
   */
  static const struct board_info __initconst *bcm963xx_boards[] = {
-@@ -2241,6 +2313,10 @@ static const struct board_info __initcon
+@@ -2243,6 +2315,10 @@ static const struct board_info __initcon
        &board_HW553,
        &board_spw303v,
  #endif
@@ -100,7 +100,7 @@ Subject: [PATCH 32/63] bcm63xx: add support for 96368MVWG board.
  };
  
  /*
-@@ -2409,12 +2485,25 @@ void __init board_prom_init(void)
+@@ -2416,12 +2492,25 @@ void __init board_prom_init(void)
                bcm63xx_pci_enabled = 1;
                if (BCMCPU_IS_6348())
                        val |= GPIO_MODE_6348_G2_PCI;
index 920d172..c956dbb 100644 (file)
@@ -9,7 +9,7 @@ Subject: [PATCH 33/63] bcm63xx: add support for 96368MVNgr board.
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2259,6 +2259,72 @@ static struct board_info __initdata boar
+@@ -2261,6 +2261,72 @@ static struct board_info __initdata boar
        .has_ohci0 = 1,
        .has_ehci0 = 1,
  };
@@ -82,7 +82,7 @@ Subject: [PATCH 33/63] bcm63xx: add support for 96368MVNgr board.
  #endif
  
  /*
-@@ -2316,6 +2382,7 @@ static const struct board_info __initcon
+@@ -2318,6 +2384,7 @@ static const struct board_info __initcon
  
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
index 5875bd2..735fdba 100644 (file)
@@ -9,7 +9,7 @@ Subject: [PATCH] MIPS: BCM63XX: add 96328avng reference board
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -73,13 +73,45 @@ static struct board_info __initdata boar
+@@ -75,13 +75,45 @@ static struct board_info __initdata boar
                .port_no                = 0,
        },
  
@@ -56,7 +56,7 @@ Subject: [PATCH] MIPS: BCM63XX: add 96328avng reference board
                        .name           = "96328avng::power",
                        .gpio           = 4,
                        .active_low     = 1,
-@@ -96,7 +128,7 @@ static struct board_info __initdata boar
+@@ -98,7 +130,7 @@ static struct board_info __initdata boar
                        .active_low     = 1,
                },
                {
index c27c02f..c5cd05c 100644 (file)
@@ -9,7 +9,7 @@ Subject: [PATCH] MIPS: BCM63XX: add 963281TAN reference board
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -134,6 +134,76 @@ static struct board_info __initdata boar
+@@ -136,6 +136,76 @@ static struct board_info __initdata boar
                },
        },
  };
@@ -86,7 +86,7 @@ Subject: [PATCH] MIPS: BCM63XX: add 963281TAN reference board
  #endif
  
  /*
-@@ -2365,6 +2435,7 @@ static struct board_info __initdata boar
+@@ -2367,6 +2437,7 @@ static struct board_info __initdata boar
  static const struct board_info __initconst *bcm963xx_boards[] = {
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
index a389af6..10e76fb 100644 (file)
@@ -10,7 +10,7 @@ Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition for D-Link
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -204,6 +204,111 @@ static struct board_info __initdata boar
+@@ -206,6 +206,111 @@ static struct board_info __initdata boar
  
        },
  };
@@ -122,7 +122,7 @@ Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition for D-Link
  #endif
  
  /*
-@@ -2436,6 +2541,7 @@ static const struct board_info __initcon
+@@ -2438,6 +2543,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
        &board_963281TAN,
index 665840c..a6af6be 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1363,6 +1363,59 @@ static struct board_info __initdata boar
+@@ -1365,6 +1365,59 @@ static struct board_info __initdata boar
        },
  };
  
@@ -60,7 +60,7 @@
  #endif
  
  /*
-@@ -2571,6 +2624,7 @@ static const struct board_info __initcon
+@@ -2573,6 +2626,7 @@ static const struct board_info __initcon
        &board_ct536_ct5621,
        &board_96348A_122,
        &board_CPVA502plus,
index 6642e34..c9b7bb7 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -54,6 +54,13 @@
+@@ -56,6 +56,13 @@
  #define NB4_SPI_GPIO_CLK      6
  #define NB4_74HC64_GPIO(X)    (NB4_74X164_GPIO_BASE + (X))
  
@@ -14,7 +14,7 @@
  static struct board_info board;
  
  /*
-@@ -2306,6 +2313,113 @@ static struct board_info __initdata boar
+@@ -2308,6 +2315,113 @@ static struct board_info __initdata boar
        .num_spis = ARRAY_SIZE(nb4_spi_devices),
  };
  
  static struct board_info __initdata board_HW553 = {
        .name                           = "HW553",
        .expected_cpu_id                = 0x6358,
-@@ -2639,6 +2753,7 @@ static const struct board_info __initcon
+@@ -2641,6 +2755,7 @@ static const struct board_info __initcon
        &board_nb4_ser_r2,
        &board_nb4_fxc_r1,
        &board_nb4_fxc_r2,
index c4d81bc..1760db5 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2561,6 +2561,73 @@ static struct board_info __initdata boar
+@@ -2563,6 +2563,73 @@ static struct board_info __initdata boar
                },
        }
  };
@@ -74,7 +74,7 @@
  #endif
  
  /*
-@@ -2756,6 +2823,7 @@ static const struct board_info __initcon
+@@ -2758,6 +2825,7 @@ static const struct board_info __initcon
        &board_ct6373_1,
        &board_HW553,
        &board_spw303v,
index e565b8e..b352b73 100644 (file)
@@ -8,7 +8,7 @@
  #include <asm/addrspace.h>
  #include <bcm63xx_board.h>
  #include <bcm63xx_cpu.h>
-@@ -53,6 +54,8 @@
+@@ -55,6 +56,8 @@
  #define NB4_SPI_GPIO_MOSI     7
  #define NB4_SPI_GPIO_CLK      6
  #define NB4_74HC64_GPIO(X)    (NB4_74X164_GPIO_BASE + (X))
@@ -17,7 +17,7 @@
  
  #define CT6373_PID_OFFSET             0xff80
  #define CT6373_74X164_GPIO_BASE       64
-@@ -2630,6 +2633,103 @@ static struct board_info __initdata boar
+@@ -2632,6 +2635,103 @@ static struct board_info __initdata boar
  };
  #endif
  
  /*
   * known 6368 boards
   */
-@@ -2826,6 +2926,10 @@ static const struct board_info __initcon
+@@ -2828,6 +2928,10 @@ static const struct board_info __initcon
        &board_DVAG3810BN,
  #endif
  
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
-@@ -2893,6 +2997,11 @@ static void __init boardid_fixup(u8 *boo
+@@ -2895,6 +2999,11 @@ static void __init boardid_fixup(u8 *boo
                }
        }
  
index 3cff430..9417bdf 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1031,6 +1031,57 @@ static struct board_info __initdata boar
+@@ -1033,6 +1033,57 @@ static struct board_info __initdata boar
        .has_ehci0                      = 1,
  };
  
@@ -58,7 +58,7 @@
  static struct board_info __initdata board_rta1025w_16 = {
        .name                           = "RTA1025W_16",
        .expected_cpu_id                = 0x6348,
-@@ -2894,6 +2945,7 @@ static const struct board_info __initcon
+@@ -2896,6 +2947,7 @@ static const struct board_info __initcon
        &board_96348gw_10,
        &board_96348gw_11,
        &board_FAST2404,
index 9ee4676..22cbd57 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -215,6 +215,125 @@ static struct board_info __initdata boar
+@@ -217,6 +217,125 @@ static struct board_info __initdata boar
        },
  };
  
  static struct board_info __initdata board_dsl_274xb_f1 = {
        .name                           = "AW4339U",
        .expected_cpu_id                = 0x6328,
-@@ -2926,6 +3045,7 @@ static const struct board_info __initcon
+@@ -2928,6 +3047,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
        &board_963281TAN,
index 26cc128..3b10795 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -145,6 +145,78 @@ static struct board_info __initdata boar
+@@ -147,6 +147,78 @@ static struct board_info __initdata boar
        },
  };
  
@@ -79,7 +79,7 @@
  static struct board_info __initdata board_963281TAN = {
        .name                           = "963281TAN",
        .expected_cpu_id                = 0x6328,
-@@ -3044,6 +3116,7 @@ static struct board_info __initdata boar
+@@ -3046,6 +3118,7 @@ static struct board_info __initdata boar
  static const struct board_info __initconst *bcm963xx_boards[] = {
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
index a0de0da..fb4bc3f 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -145,6 +145,72 @@ static struct board_info __initdata boar
+@@ -147,6 +147,72 @@ static struct board_info __initdata boar
        },
  };
  
@@ -73,7 +73,7 @@
  static struct board_info __initdata board_96328A_1441N1 = {
        .name                                   = "96328A-1441N1",
        .expected_cpu_id                        = 0x6328,
-@@ -3116,6 +3182,7 @@ static struct board_info __initdata boar
+@@ -3118,6 +3184,7 @@ static struct board_info __initdata boar
  static const struct board_info __initconst *bcm963xx_boards[] = {
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
index 181a0a9..37586a3 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -750,6 +750,55 @@ static struct board_info __initdata boar
+@@ -752,6 +752,55 @@ static struct board_info __initdata boar
  
        .has_uart0                      = 1,
  };
@@ -56,7 +56,7 @@
  #endif
  
  /*
-@@ -3196,6 +3245,7 @@ static const struct board_info __initcon
+@@ -3198,6 +3247,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6345
        &board_96345gw2,
index fb0afa4..4ef9b28 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2856,6 +2856,374 @@ static struct board_info __initdata boar
+@@ -2858,6 +2858,374 @@ static struct board_info __initdata boar
        },
  };
  
   /* T-Home Speedport W 303V Typ B */
  static struct board_info __initdata board_spw303v = {
        .name                   = "96358-502V",
-@@ -3284,6 +3652,10 @@ static const struct board_info __initcon
+@@ -3286,6 +3654,10 @@ static const struct board_info __initcon
        &board_nb4_fxc_r2,
        &board_ct6373_1,
        &board_HW553,
        &board_spw303v,
        &board_DVAG3810BN,
  #endif
-@@ -3349,13 +3721,37 @@ static void __init boardid_fixup(u8 *boo
+@@ -3351,13 +3723,37 @@ static void __init boardid_fixup(u8 *boo
        struct bcm_tag *tag = (struct bcm_tag *)(boot_addr + CFE_OFFSET_64K);
        char *board_name = (char *)bcm63xx_nvram_get_name();
  
index f456512..e12628f 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -799,6 +799,60 @@ static struct board_info __initdata boar
+@@ -801,6 +801,60 @@ static struct board_info __initdata boar
                },
        },
  };
@@ -61,7 +61,7 @@
  #endif
  
  /*
-@@ -3614,6 +3668,7 @@ static const struct board_info __initcon
+@@ -3616,6 +3670,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6345
        &board_96345gw2,
        &board_rta770bw,
index c53351e..ab5cd4d 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2056,6 +2056,99 @@ static struct board_info __initdata boar
+@@ -2058,6 +2058,99 @@ static struct board_info __initdata boar
  
        .has_ohci0 = 1,
        .has_ehci0 = 1,
index 2da141f..c555e00 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1501,6 +1501,19 @@ static struct board_info __initdata boar
+@@ -1503,6 +1503,19 @@ static struct board_info __initdata boar
        },
  
        .has_ohci0 = 1,
index 898063f..06418f6 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -961,6 +961,17 @@ static struct board_info __initdata boar
+@@ -963,6 +963,17 @@ static struct board_info __initdata boar
                        .active_low     = 1,
                },
        },
index 6ab4e97..6879e2b 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -589,6 +589,8 @@ static struct board_info __initdata boar
+@@ -591,6 +591,8 @@ static struct board_info __initdata boar
        .has_uart0                      = 1,
        .has_enet0                      = 1,
        .enet0 = {
@@ -9,7 +9,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -632,6 +634,8 @@ static struct board_info __initdata boar
+@@ -634,6 +636,8 @@ static struct board_info __initdata boar
        .has_uart0                      = 1,
        .has_enet0                      = 1,
        .enet0 = {
@@ -18,7 +18,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -917,6 +921,8 @@ static struct board_info __initdata boar
+@@ -919,6 +923,8 @@ static struct board_info __initdata boar
                .use_internal_phy       = 1,
        },
        .enet1 = {
@@ -27,7 +27,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -989,6 +995,8 @@ static struct board_info __initdata boar
+@@ -991,6 +997,8 @@ static struct board_info __initdata boar
        },
  
        .enet1 = {
@@ -36,7 +36,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -1218,6 +1226,8 @@ static struct board_info __initdata boar
+@@ -1220,6 +1228,8 @@ static struct board_info __initdata boar
                .use_internal_phy       = 1,
        },
        .enet1 = {
@@ -45,7 +45,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -1393,6 +1403,8 @@ static struct board_info __initdata boar
+@@ -1395,6 +1405,8 @@ static struct board_info __initdata boar
        },
  
        .enet1 = {
@@ -54,7 +54,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -1467,6 +1479,8 @@ static struct board_info __initdata boar
+@@ -1469,6 +1481,8 @@ static struct board_info __initdata boar
                .use_internal_phy       = 1,
        },
        .enet1 = {
@@ -63,7 +63,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -1488,6 +1502,8 @@ static struct board_info __initdata boar
+@@ -1490,6 +1504,8 @@ static struct board_info __initdata boar
                .use_internal_phy       = 1,
        },
        .enet1 = {
@@ -72,7 +72,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -1507,6 +1523,8 @@ static struct board_info __initdata boar
+@@ -1509,6 +1525,8 @@ static struct board_info __initdata boar
                .use_internal_phy       = 1,
        },
        .enet1 = {
@@ -81,7 +81,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -1882,6 +1900,8 @@ static struct board_info __initdata boar
+@@ -1884,6 +1902,8 @@ static struct board_info __initdata boar
        },
  
        .enet1 = {
@@ -90,7 +90,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -1934,6 +1954,8 @@ static struct board_info __initdata boar
+@@ -1936,6 +1956,8 @@ static struct board_info __initdata boar
        },
  
        .enet1 = {
@@ -99,7 +99,7 @@
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -2074,6 +2096,8 @@ static struct board_info __initdata boar
+@@ -2076,6 +2098,8 @@ static struct board_info __initdata boar
        },
  
        .enet1 = {
                .force_speed_100        = 1,
                .force_duplex_full      = 1,
        },
-@@ -2191,6 +2215,8 @@ static struct board_info __initdata boar
+@@ -2193,6 +2217,8 @@ static struct board_info __initdata boar
        },
  
        .enet1 = {
index ea131a9..b3e3972 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2223,6 +2223,94 @@ static struct board_info __initdata boar
+@@ -2225,6 +2225,94 @@ static struct board_info __initdata boar
  
        .has_ohci0                      = 1,
        .has_ehci0                      = 1,
diff --git a/target/linux/brcm63xx/patches-3.8/555-netgear_CVG834G_E15R3921.patch b/target/linux/brcm63xx/patches-3.8/555-netgear_CVG834G_E15R3921.patch
new file mode 100644 (file)
index 0000000..9b43adb
--- /dev/null
@@ -0,0 +1,54 @@
+--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
++++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
+@@ -69,6 +69,41 @@
+ static struct board_info board;
+ /*
++ * known 3368 boards
++ */
++#ifdef CONFIG_BCM63XX_CPU_3368
++static struct board_info __initdata board_cvg834g = {
++      .name                           = "CVG834G_E15R3921",
++      .expected_cpu_id                = 0x3368,
++
++      .has_uart0                      = 1,
++      .has_uart1                      = 1,
++
++      .has_enet0                      = 1,
++      .has_pci                        = 1,
++
++      .enet0 = {
++              .has_phy                = 1,
++              .use_internal_phy       = 1,
++      },
++
++      .leds = {
++              {
++                      .name           = "CVG834G::switch-reset",
++                      .gpio           = 36,
++                      .default_trigger= "default-on",
++              },
++
++              {
++                      .name           = "CVG834G:green:power",
++                      .gpio           = 37,
++                      .default_trigger= "default-on",
++              },
++      },
++};
++#endif
++
++/*
+  * known 6328 boards
+  */
+ #ifdef CONFIG_BCM63XX_CPU_6328
+@@ -3884,6 +3919,9 @@ static struct board_info __initdata boar
+  * all boards
+  */
+ static const struct board_info __initconst *bcm963xx_boards[] = {
++#ifdef CONFIG_BCM63XX_CPU_3368
++      &board_cvg834g,
++#endif
+ #ifdef CONFIG_BCM63XX_CPU_6328
+       &board_96328avng,
+       &board_96328A_1241N,
index 563aa43..9861925 100644 (file)
@@ -8,7 +8,7 @@
  #include <linux/spi/spi.h>
  #include <linux/spi/spi_gpio.h>
  #include <linux/spi/74x164.h>
-@@ -3961,7 +3962,7 @@ static const struct board_info __initcon
+@@ -4001,7 +4002,7 @@ static const struct board_info __initcon
   * bcm4318 WLAN work
   */
  #ifdef CONFIG_SSB_PCIHOST
@@ -17,7 +17,7 @@
        .revision               = 0x02,
        .board_rev              = 0x17,
        .country_code           = 0x0,
-@@ -3981,6 +3982,7 @@ static struct ssb_sprom bcm63xx_sprom =
+@@ -4021,6 +4022,7 @@ static struct ssb_sprom bcm63xx_sprom =
        .boardflags_lo          = 0x2848,
        .boardflags_hi          = 0x0000,
  };
diff --git a/target/linux/brcm63xx/patches-3.9/555-netgear_CVG834G_E15R3921.patch b/target/linux/brcm63xx/patches-3.9/555-netgear_CVG834G_E15R3921.patch
new file mode 100644 (file)
index 0000000..9b43adb
--- /dev/null
@@ -0,0 +1,54 @@
+--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
++++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
+@@ -69,6 +69,41 @@
+ static struct board_info board;
+ /*
++ * known 3368 boards
++ */
++#ifdef CONFIG_BCM63XX_CPU_3368
++static struct board_info __initdata board_cvg834g = {
++      .name                           = "CVG834G_E15R3921",
++      .expected_cpu_id                = 0x3368,
++
++      .has_uart0                      = 1,
++      .has_uart1                      = 1,
++
++      .has_enet0                      = 1,
++      .has_pci                        = 1,
++
++      .enet0 = {
++              .has_phy                = 1,
++              .use_internal_phy       = 1,
++      },
++
++      .leds = {
++              {
++                      .name           = "CVG834G::switch-reset",
++                      .gpio           = 36,
++                      .default_trigger= "default-on",
++              },
++
++              {
++                      .name           = "CVG834G:green:power",
++                      .gpio           = 37,
++                      .default_trigger= "default-on",
++              },
++      },
++};
++#endif
++
++/*
+  * known 6328 boards
+  */
+ #ifdef CONFIG_BCM63XX_CPU_6328
+@@ -3884,6 +3919,9 @@ static struct board_info __initdata boar
+  * all boards
+  */
+ static const struct board_info __initconst *bcm963xx_boards[] = {
++#ifdef CONFIG_BCM63XX_CPU_3368
++      &board_cvg834g,
++#endif
+ #ifdef CONFIG_BCM63XX_CPU_6328
+       &board_96328avng,
+       &board_96328A_1241N,