2a589ec6d585124172f0db389f05db8d5e491c29
[openwrt.git] / target / linux / brcm63xx / patches-3.9 / 040-MIPS-BCM63XX-add-support-for-the-Netgear-CVG834G.patch
1 From 04760855f0d99a1cdc67ae0152d95bcc4525cff5 Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <florian@openwrt.org>
3 Date: Tue, 18 Jun 2013 16:55:44 +0000
4 Subject: [PATCH 6/6] MIPS: BCM63XX: add support for the Netgear CVG834G
5
6 Add support for the Netgear CVG834G and enable the two UARTs, Ethernet
7 on the first MAC, PCI and the two leds.
8
9 Signed-off-by: Florian Fainelli <florian@openwrt.org>
10 Cc: linux-mips@linux-mips.org
11 Cc: cernekee@gmail.com
12 Cc: jogo@openwrt.org
13 Cc: Florian Fainelli <florian@openwrt.org>
14 Patchwork: https://patchwork.linux-mips.org/patch/5502/
15 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 ---
17  arch/mips/bcm63xx/boards/board_bcm963xx.c |   35 +++++++++++++++++++++++++++++
18  1 file changed, 35 insertions(+)
19
20 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
21 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
22 @@ -37,6 +37,38 @@
23  static struct board_info board;
24  
25  /*
26 + * known 3368 boards
27 + */
28 +#ifdef CONFIG_BCM63XX_CPU_3368
29 +static struct board_info __initdata board_cvg834g = {
30 +       .name                           = "CVG834G_E15R3921",
31 +       .expected_cpu_id                = 0x3368,
32 +
33 +       .has_uart0                      = 1,
34 +       .has_uart1                      = 1,
35 +
36 +       .has_enet0                      = 1,
37 +       .has_pci                        = 1,
38 +
39 +       .enet0 = {
40 +               .has_phy                = 1,
41 +               .use_internal_phy       = 1,
42 +       },
43 +
44 +       .leds = {
45 +               {
46 +                       .name           = "CVG834G:green:power",
47 +                       .gpio           = 37,
48 +                       .default_trigger= "default-on",
49 +               },
50 +       },
51 +
52 +       .ephy_reset_gpio                = 36,
53 +       .ephy_reset_gpio_flags          = GPIOF_INIT_HIGH,
54 +};
55 +#endif
56 +
57 +/*
58   * known 6328 boards
59   */
60  #ifdef CONFIG_BCM63XX_CPU_6328
61 @@ -643,6 +675,9 @@ static struct board_info __initdata boar
62   * all boards
63   */
64  static const struct board_info __initconst *bcm963xx_boards[] = {
65 +#ifdef CONFIG_BCM63XX_CPU_3368
66 +       &board_cvg834g,
67 +#endif
68  #ifdef CONFIG_BCM63XX_CPU_6328
69         &board_96328avng,
70  #endif