brcm63xx: add kernel space and image support for the Netgear CVG834G
authorFlorian Fainelli <florian@openwrt.org>
Thu, 6 Jun 2013 22:22:14 +0000 (22:22 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 6 Jun 2013 22:22:14 +0000 (22:22 +0000)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36876

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 69621dc5aee16ff4b4f2847b975d10daebc24a70..754460731d73418bb25e3438c58b983a54aaa931 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 8b17569f4b2193b38cf8897974999513cc3ed2bd..5db8c567958bbbfb345451062d61a1cf91a054b2 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 99b7e43acca940920a7cb66421d904d085a8c86c..759ba439801dea25316d3d5133a7d7f2eb9789da 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 2420ab64c8825294ff78841341cccbd428a4abcf..c152d8f0814f94bfa41388663292d1efdaaa3f5a 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 ec75cfefdc9851e3b11c71c9ea61844454f6cbb3..8770ef8a85a6aa81a0d81802d1aa071e41b3aa4f 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 50fac61b739244db9b2ef424c25cc21832981ab1..138e55114d3c81168d0e872f08a7e1964fa4c929 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 6abdac3db7c0fe2c150683036e73b1011b7dbfbe..09f18768f5e332eb7436702a676ed367ac922fe8 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 6635590c64d512359d6a00c7bb1726e9ba847d32..413524789c35a9cf446e3ca53861a21e2c17d3cb 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 6bd1dff17580155fc2a17651617d4316fc849130..f7f65de0998821c6078206614ee338b039c063d9 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 f26017ea68d6218f4ec2f2cc272b60bb73e98770..b26fde6e1fa8c7f0be5865fb6fd86e58abd3dba6 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 a596f45b7a187e769f68a826bef1ddf2c831a732..d91ad06764a7cfc345b1053ae9123adfbb6719b3 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 d21358e43dcc53cacaaa6dd94ffb5fc687daf366..e659e9f2559e73bc21367447808085b12c06603a 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 a2d78a6075b7bfbcc3bd5a16a718f81249ba19e4..4a9218560faaaa1e15c20c6da3b94c06c3c7fbc8 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 53f0377badc0b7a1b5feeb8e4f6335240a945b5a..a20503e9be5e37be5875a24881d13f1d5bef3f3d 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 25d98471c475b6d0ee7e4cfaec29996fa1e4a43b..2a4d83b4a5336761c29074e9c4525c577457b912 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 cad84e7dc50d7653424ecc438ac4e217c91f1e00..b2a1714adfb9045f9ab974725c42720026cec546 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 823a587534342915d2c5a5fe76068bcea36723ac..b0900dee188a04a738cc30e7c04fef6939d4ba89 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 7f0ee27d48bb08f8be49caec0f4f8cd5e208caae..4c22d7bf0bd366a09509b7fb2430102f3db77b8a 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 6dd246be573b9cf75ee493cbf5819224916b5dc4..5ca2376b34af103c275d0c3202c660d091b9e4ff 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 c3b2c165438b81eb6c5cda6968b53b12b9be1f85..bb4213311efd0c07b6dd9723861e82b1be67db31 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 920d17278689dbb7347d4a61a0de84e88f4875d8..c956dbbc3a19d0270a5c43c15fd7de4bc86876c1 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 5875bd2ad9435afaaa1238fb62748525c0794b0a..735fdba154567ebcfd3211c29d397c914942610e 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 c27c02f2d509ea9b2334ee6e58606eda09c0d3c1..c5cd05c643023a925ddc545d1a014f2340e87688 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 a389af6514239c4abfe13e71878b36d9c68fa6cd..10e76fb2ad1cf441411a9d74ebe17ddc790ee1a6 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 665840cad35ad46c9f47427f1c8bb6cd8729cf59..a6af6be175f5c0d28462f7d3cdadfd1f1ac4afe3 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 6642e34912146dcb55e2eb69c9b75a924f6dad2b..c9b7bb7d15b6ded63dcdc84663e1ef376a463fca 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 c4d81bc2db9a1aa5ad5f769013bb9ace1ac45dcc..1760db5145684426e2a98e3a50e074c350c2c03d 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 e565b8ecb9a2a00d8ca0f0062f9eb1714ce184f0..b352b739d6bc9212a92e220d6e753c811706af42 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 3cff43025caabe2d8c7b73d399e3a4a1f854efb9..9417bdfa437f0354ba38f096da6a148d6a6c9541 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 9ee467623eb8e578255e9ce4eabdf7ed040d1121..22cbd57ab23240d2e89bc563236678c62ef25b06 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 26cc128289855cc040e9e89742ce2f215af32f16..3b107959b81d3e043d7dd029442e4a89f2b8cba2 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 a0de0da3b0f0b26028a9075b19b8f5809894f9a9..fb4bc3fb95af4c6f7da90498f5927fa75931e607 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 181a0a9b4bab5902d8af7411fcf993dfc6117783..37586a3cd3f017f5240e3d9193ee41a3808502a8 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 fb0afa4493c921c64e813f1c01b81a94f583a294..4ef9b289616e803bdb1af5a5347d679caee2284d 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 f4565128515fd0e1f7ab3ebdfdd7f2b2e4485e56..e12628f4277b255caf8a31d67aba24e3f23979dc 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 c53351e43db693cd24a25e12cc8a86502f327b6c..ab5cd4d4b2fe97283eff5beca54f0941aa07a01f 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 2da141f275e25a502e7c1bdc72764dee1bc31e41..c555e002e8310e60af8e6cc3cfefce63cf051533 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 898063ff6fb18931b05c92506d74d72d5674fb67..06418f69843e081eb1970cdd3c0743c58286026c 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 6ab4e97c1a1993e7eb90f44dd06f0850a806827d..6879e2b92f4ea51da43625953d44510814b72f80 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 ea131a99fc0bd86ce8bb4853b75acd6d3f014ae1..b3e3972779d39fe8782d3ceab10c6bc243e42175 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 563aa43834f3e91a837674b8a0f2395dca0ed1ad..9861925e27d22441a6c4d469501676783a5218b5 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,