brcm63xx: use dtb board detection for neufbox 4
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 516-board_96348A-122.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -596,6 +596,76 @@ static struct board_info __initdata boar
4 },
5 };
6
7 +static struct board_info __initdata board_96348A_122 = {
8 + .name = "96348A-122",
9 + .expected_cpu_id = 0x6348,
10 +
11 + .has_uart0 = 1,
12 + .has_enet1 = 1,
13 + .has_pci = 1,
14 + .use_fallback_sprom = 1,
15 +
16 + .enet1 = {
17 + .has_phy = 1,
18 + .phy_id = 0,
19 + .force_speed_100 = 1,
20 + .force_duplex_full = 1,
21 + },
22 +
23 + .has_ohci0 = 1,
24 +
25 + .leds = {
26 + {
27 + .name = "96348A-122:green:power",
28 + .gpio = 0,
29 + .active_low = 1,
30 + .default_trigger = "default-on",
31 + },
32 + {
33 + .name = "96348A-122:red:alarm",
34 + .gpio = 2,
35 + .active_low = 1,
36 + },
37 + {
38 + .name = "96348A-122:green:wps",
39 + .gpio = 6,
40 + .active_low = 1,
41 + },
42 + },
43 + .buttons = {
44 + {
45 + .desc = "reset",
46 + .gpio = 33,
47 + .active_low = 1,
48 + .type = EV_KEY,
49 + .code = KEY_RESTART,
50 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
51 + },
52 + {
53 + .desc = "wlan",
54 + .gpio = 34,
55 + .active_low = 1,
56 + .type = EV_KEY,
57 + .code = KEY_WLAN,
58 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
59 + },
60 + {
61 + .desc = "wps",
62 + .gpio = 35,
63 + .active_low = 1,
64 + .type = EV_KEY,
65 + .code = KEY_WPS_BUTTON,
66 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
67 + },
68 + },
69 +
70 + .fallback_sprom = {
71 + .type = SPROM_BCM4318,
72 + .pci_bus = 0,
73 + .pci_dev = 1,
74 + },
75 +};
76 +
77 static struct board_info __initdata board_96348gw = {
78 .name = "96348GW",
79 .of_board_id = "brcm,bcm96348gw",
80 @@ -1861,6 +1931,7 @@ static const struct board_info __initcon
81 &board_V2500V_BB,
82 &board_V2110,
83 &board_ct536_ct5621,
84 + &board_96348A_122,
85 #endif
86
87 #ifdef CONFIG_BCM63XX_CPU_6358