brcm63xx: fix platform gpio lookups for gpios < 32
[openwrt.git] / target / linux / brcm63xx / patches-4.4 / 556-board_96318ref_p300.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -105,6 +105,51 @@ static struct board_info __initdata boar
4                 },
5         },
6  };
7 +
8 +static struct board_info __initdata board_96318ref_p300 = {
9 +       .name                           = "96318REF_P300",
10 +       .expected_cpu_id                = 0x6318,
11 +
12 +       .has_uart0                      = 1,
13 +       .has_pci                        = 1,
14 +
15 +       .has_usbd                       = 1,
16 +
17 +       .usbd = {
18 +               .use_fullspeed          = 0,
19 +               .port_no                = 0,
20 +       },
21 +
22 +       .has_enetsw                     = 1,
23 +
24 +       .has_ehci0                      = 1,
25 +       .num_usbh_ports                 = 1,
26 +
27 +       .enetsw = {
28 +               .used_ports = {
29 +                       [0] = {
30 +                               .used   = 1,
31 +                               .phy_id = 1,
32 +                               .name   = "Port 1",
33 +                       },
34 +                       [1] = {
35 +                               .used   = 1,
36 +                               .phy_id = 2,
37 +                               .name   = "Port 2",
38 +                       },
39 +                       [2] = {
40 +                               .used   = 1,
41 +                               .phy_id = 3,
42 +                               .name   = "Port 3",
43 +                       },
44 +                       [3] = {
45 +                               .used   = 1,
46 +                               .phy_id = 4,
47 +                               .name   = "Port 4",
48 +                       },
49 +               },
50 +       },
51 +};
52  #endif /* CONFIG_BCM63XX_CPU_6318 */
53  
54  /*
55 @@ -1661,6 +1706,7 @@ static const struct board_info __initcon
56  #endif
57  #ifdef CONFIG_BCM63XX_CPU_6318
58         &board_96318ref,
59 +       &board_96318ref_p300,
60  #endif
61  #ifdef CONFIG_BCM63XX_CPU_6328
62         &board_96328avng,
63 @@ -1741,6 +1787,7 @@ static struct of_device_id const bcm963x
64  #endif
65  #ifdef CONFIG_BCM63XX_CPU_6318
66         { .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
67 +       { .compatible = "brcm,bcm96318ref_p300", .data = &board_96318ref_p300, },
68  #endif
69  #ifdef CONFIG_BCM63XX_CPU_6328
70         { .compatible = "adb,a4001n1", .data = &board_A4001N1, },