OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c |
1 | --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c |
|
2 | +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c |
2 | +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c |
|
3 | @@ -127,6 +127,49 @@ static struct board_info __initdata boar |
3 | @@ -127,6 +127,49 @@ static struct board_info __initdata boar |
|
4 | }, |
4 | }, |
|
5 | }; |
5 | }; |
|
6 | |
6 | |
|
7 | +static struct board_info __initdata board_A4001N1 = { |
7 | +static struct board_info __initdata board_A4001N1 = { |
|
8 | + .name = "963281T_TEF", |
8 | + .name = "963281T_TEF", |
|
9 | + .expected_cpu_id = 0x6328, |
9 | + .expected_cpu_id = 0x6328, |
|
10 | + |
10 | + |
|
11 | + .has_pci = 1, |
11 | + .has_pci = 1, |
|
12 | + .use_fallback_sprom = 1, |
12 | + .use_fallback_sprom = 1, |
|
13 | + .has_ohci0 = 1, |
13 | + .has_ohci0 = 1, |
|
14 | + .has_ehci0 = 1, |
14 | + .has_ehci0 = 1, |
|
15 | + .num_usbh_ports = 1, |
15 | + .num_usbh_ports = 1, |
|
16 | + .has_enetsw = 1, |
16 | + .has_enetsw = 1, |
|
17 | + |
17 | + |
|
18 | + .enetsw = { |
18 | + .enetsw = { |
|
19 | + .used_ports = { |
19 | + .used_ports = { |
|
20 | + [0] = { |
20 | + [0] = { |
|
21 | + .used = 1, |
21 | + .used = 1, |
|
22 | + .phy_id = 1, |
22 | + .phy_id = 1, |
|
23 | + .name = "Port 1", |
23 | + .name = "Port 1", |
|
24 | + }, |
24 | + }, |
|
25 | + [1] = { |
25 | + [1] = { |
|
26 | + .used = 1, |
26 | + .used = 1, |
|
27 | + .phy_id = 2, |
27 | + .phy_id = 2, |
|
28 | + .name = "Port 2", |
28 | + .name = "Port 2", |
|
29 | + }, |
29 | + }, |
|
30 | + [2] = { |
30 | + [2] = { |
|
31 | + .used = 1, |
31 | + .used = 1, |
|
32 | + .phy_id = 3, |
32 | + .phy_id = 3, |
|
33 | + .name = "Port 3", |
33 | + .name = "Port 3", |
|
34 | + }, |
34 | + }, |
|
35 | + [3] = { |
35 | + [3] = { |
|
36 | + .used = 1, |
36 | + .used = 1, |
|
37 | + .phy_id = 4, |
37 | + .phy_id = 4, |
|
38 | + .name = "Port 4", |
38 | + .name = "Port 4", |
|
39 | + }, |
39 | + }, |
|
40 | + }, |
40 | + }, |
|
41 | + }, |
41 | + }, |
|
42 | + |
42 | + |
|
43 | + .fallback_sprom = { |
43 | + .fallback_sprom = { |
|
44 | + .type = SPROM_BCM43225, |
44 | + .type = SPROM_BCM43225, |
|
45 | + .pci_bus = 1, |
45 | + .pci_bus = 1, |
|
46 | + .pci_dev = 0, |
46 | + .pci_dev = 0, |
|
47 | + }, |
47 | + }, |
|
48 | +}; |
48 | +}; |
|
49 | + |
49 | + |
|
50 | static struct board_info __initdata board_dsl_274xb_f1 = { |
50 | static struct board_info __initdata board_dsl_274xb_f1 = { |
|
51 | .name = "AW4339U", |
51 | .name = "AW4339U", |
|
52 | .expected_cpu_id = 0x6328, |
52 | .expected_cpu_id = 0x6328, |
|
53 | @@ -1111,6 +1154,7 @@ static const struct board_info __initcon |
53 | @@ -1159,6 +1202,7 @@ static const struct board_info __initcon |
|
54 | #ifdef CONFIG_BCM63XX_CPU_6328 |
54 | #ifdef CONFIG_BCM63XX_CPU_6328 |
|
55 | &board_96328avng, |
55 | &board_96328avng, |
|
56 | &board_963281TAN, |
56 | &board_963281TAN, |
|
57 | + &board_A4001N1, |
57 | + &board_A4001N1, |
|
58 | &board_dsl_274xb_f1, |
58 | &board_dsl_274xb_f1, |
|
59 | #endif |
59 | #endif |
|
60 | #ifdef CONFIG_BCM63XX_CPU_6338 |
60 | #ifdef CONFIG_BCM63XX_CPU_6338 |
|
61 | @@ -1176,6 +1220,7 @@ static struct of_device_id const bcm963x |
61 | @@ -1224,6 +1268,7 @@ static struct of_device_id const bcm963x |
|
62 | { .compatible = "netgear,cvg834g", .data = &board_cvg834g, }, |
62 | { .compatible = "netgear,cvg834g", .data = &board_cvg834g, }, |
|
63 | #endif |
63 | #endif |
|
64 | #ifdef CONFIG_BCM63XX_CPU_6328 |
64 | #ifdef CONFIG_BCM63XX_CPU_6328 |
|
65 | + { .compatible = "adb,a4001n1", .data = &board_A4001N1, }, |
65 | + { .compatible = "adb,a4001n1", .data = &board_A4001N1, }, |
|
66 | { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, }, |
66 | { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, }, |
|
67 | { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, }, |
67 | { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, }, |
|
68 | { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, }, |
68 | { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, }, |
|
69 | |
69 | |