brcm63xx: add preliminary support for 3.13
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.13 / 557-board_bcm963269bhr.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -4431,6 +4431,75 @@ static struct board_info __initdata boar
4 #endif
5
6 /*
7 + * known 63268/63269 boards
8 + */
9 +#ifdef CONFIG_BCM63XX_CPU_63268
10 +static struct board_info __initdata board_963269bhr = {
11 + .name = "963269BHR",
12 + .expected_cpu_id = 0x63268,
13 +
14 + .has_uart0 = 1,
15 +
16 + .has_pci = 1,
17 +
18 + .has_ehci0 = 1,
19 +
20 + .has_enetsw = 1,
21 +
22 + .enetsw = {
23 + .used_ports = {
24 + [0] = {
25 + .used = 1,
26 + .phy_id = 1,
27 + .name = "port1",
28 + },
29 +
30 + [1] = {
31 + .used = 1,
32 + .phy_id = 2,
33 + .name = "port2",
34 + },
35 +
36 + [2] = {
37 + .used = 1,
38 + .phy_id = 3,
39 + .name = "port3",
40 + },
41 +
42 + [3] = {
43 + .used = 1,
44 + .phy_id = 4,
45 + .name = "port4",
46 + },
47 + },
48 + },
49 +
50 + .leds = {
51 + {
52 + .name = "963629BHR:green:usb1",
53 + .gpio = 9,
54 + .active_low = 1,
55 + },
56 + {
57 + .name = "963629BHR:green:usb2",
58 + .gpio = 10,
59 + .active_low = 1,
60 + },
61 + },
62 +
63 + .buttons = {
64 + {
65 + .desc = "reset",
66 + .gpio = 32,
67 + .type = EV_KEY,
68 + .code = KEY_RESTART,
69 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
70 + },
71 + },
72 +};
73 +#endif
74 +
75 +/*
76 * all boards
77 */
78 static const struct board_info __initconst *bcm963xx_boards[] = {
79 @@ -4515,6 +4584,9 @@ static const struct board_info __initcon
80 &board_96368mvwg,
81 &board_96368mvngr,
82 #endif
83 +#ifdef CONFIG_BCM63XX_CPU_63268
84 + &board_963269bhr,
85 +#endif
86 };
87
88 /*