OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | From: Marcin Jurkowski <marcin1j@gmail.com> |
1 | From: Marcin Jurkowski <marcin1j@gmail.com> |
|
2 | Date: Thu, 31 Oct 2013 22:33:10 +0000 |
2 | Date: Thu, 31 Oct 2013 22:33:10 +0000 |
|
3 | Subject: [PATCH] bcm63xx: Add kernel support for Sagemcom F@ST2704V2 ADSL |
3 | Subject: [PATCH] bcm63xx: Add kernel support for Sagemcom F@ST2704V2 ADSL |
|
4 | router |
4 | router |
|
5 | |
5 | |
|
6 | This adds kernel support support for Sagemcom F@st 2704 wireless ADSL |
6 | This adds kernel support support for Sagemcom F@st 2704 wireless ADSL |
|
7 | router. |
7 | router. |
|
8 | It's a BCM6328-based 802.11n wireless router with USB port and ADSL2+ |
8 | It's a BCM6328-based 802.11n wireless router with USB port and ADSL2+ |
|
9 | modem equipped with 64 MiB RAM and 8 MiB flash. |
9 | modem equipped with 64 MiB RAM and 8 MiB flash. |
|
10 | |
10 | |
|
11 | Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com> |
11 | Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com> |
|
12 | --- |
12 | --- |
|
13 | --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c |
13 | --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c |
|
14 | +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c |
14 | +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c |
|
15 | @@ -341,6 +341,43 @@ static struct board_info __initdata boar |
15 | @@ -341,6 +341,43 @@ static struct board_info __initdata boar |
|
16 | }, |
16 | }, |
|
17 | }, |
17 | }, |
|
18 | }; |
18 | }; |
|
19 | + |
19 | + |
|
20 | +static struct board_info __initdata board_FAST2704V2 = { |
20 | +static struct board_info __initdata board_FAST2704V2 = { |
|
21 | + .name = "F@ST2704V2", |
21 | + .name = "F@ST2704V2", |
|
22 | + .expected_cpu_id = 0x6328, |
22 | + .expected_cpu_id = 0x6328, |
|
23 | + |
23 | + |
|
24 | + .has_pci = 1, |
24 | + .has_pci = 1, |
|
25 | + .has_ohci0 = 1, |
25 | + .has_ohci0 = 1, |
|
26 | + .has_ehci0 = 1, |
26 | + .has_ehci0 = 1, |
|
27 | + .has_usbd = 1, |
27 | + .has_usbd = 1, |
|
28 | + |
28 | + |
|
29 | + .has_enetsw = 1, |
29 | + .has_enetsw = 1, |
|
30 | + |
30 | + |
|
31 | + .enetsw = { |
31 | + .enetsw = { |
|
32 | + .used_ports = { |
32 | + .used_ports = { |
|
33 | + [0] = { |
33 | + [0] = { |
|
34 | + .used = 1, |
34 | + .used = 1, |
|
35 | + .phy_id = 1, |
35 | + .phy_id = 1, |
|
36 | + .name = "Port 1", |
36 | + .name = "Port 1", |
|
37 | + }, |
37 | + }, |
|
38 | + [1] = { |
38 | + [1] = { |
|
39 | + .used = 1, |
39 | + .used = 1, |
|
40 | + .phy_id = 2, |
40 | + .phy_id = 2, |
|
41 | + .name = "Port 2", |
41 | + .name = "Port 2", |
|
42 | + }, |
42 | + }, |
|
43 | + [2] = { |
43 | + [2] = { |
|
44 | + .used = 1, |
44 | + .used = 1, |
|
45 | + .phy_id = 3, |
45 | + .phy_id = 3, |
|
46 | + .name = "Port 3", |
46 | + .name = "Port 3", |
|
47 | + }, |
47 | + }, |
|
48 | + [3] = { |
48 | + [3] = { |
|
49 | + .used = 1, |
49 | + .used = 1, |
|
50 | + .phy_id = 4, |
50 | + .phy_id = 4, |
|
51 | + .name = "Port 4", |
51 | + .name = "Port 4", |
|
52 | + }, |
52 | + }, |
|
53 | + }, |
53 | + }, |
|
54 | + }, |
54 | + }, |
|
55 | +}; |
55 | +}; |
|
56 | #endif /* CONFIG_BCM63XX_CPU_6328 */ |
56 | #endif /* CONFIG_BCM63XX_CPU_6328 */ |
|
57 | |
57 | |
|
58 | /* |
58 | /* |
|
59 | @@ -1404,6 +1441,7 @@ static const struct board_info __initcon |
59 | @@ -1452,6 +1489,7 @@ static const struct board_info __initcon |
|
60 | &board_963281TAN, |
60 | &board_963281TAN, |
|
61 | &board_A4001N1, |
61 | &board_A4001N1, |
|
62 | &board_dsl_274xb_f1, |
62 | &board_dsl_274xb_f1, |
|
63 | + &board_FAST2704V2, |
63 | + &board_FAST2704V2, |
|
64 | #endif |
64 | #endif |
|
65 | #ifdef CONFIG_BCM63XX_CPU_6338 |
65 | #ifdef CONFIG_BCM63XX_CPU_6338 |
|
66 | &board_96338gw, |
66 | &board_96338gw, |
|
67 | @@ -1479,6 +1517,7 @@ static struct of_device_id const bcm963x |
67 | @@ -1527,6 +1565,7 @@ static struct of_device_id const bcm963x |
|
68 | { .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, }, |
68 | { .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, }, |
|
69 | { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, }, |
69 | { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, }, |
|
70 | { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, }, |
70 | { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, }, |
|
71 | + { .compatible = "sagem,f@st2704v2", .data = &board_FAST2704V2, }, |
71 | + { .compatible = "sagem,f@st2704v2", .data = &board_FAST2704V2, }, |
|
72 | #endif |
72 | #endif |
|
73 | #ifdef CONFIG_BCM63XX_CPU_6338 |
73 | #ifdef CONFIG_BCM63XX_CPU_6338 |
|
74 | { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, }, |
74 | { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, }, |
|
75 | |
75 | |