aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm63xx/patches-5.4/534-board_fast2704.patch
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2020-08-07 09:14:15 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2020-08-07 10:34:31 +0200
commit81fdb4235e4e5efe7f0fde06b908a4f6ce6a96f3 (patch)
treef3c63f93b4e7e489e2af24ba39a8ac23c1e22369 /target/linux/bcm63xx/patches-5.4/534-board_fast2704.patch
parent064dc1e81bc85f6ef8becc38854292853a59d2c2 (diff)
downloadupstream-81fdb4235e4e5efe7f0fde06b908a4f6ce6a96f3.tar.gz
upstream-81fdb4235e4e5efe7f0fde06b908a4f6ce6a96f3.tar.bz2
upstream-81fdb4235e4e5efe7f0fde06b908a4f6ce6a96f3.zip
bcm63xx: refactor board patches
Current board patches format is crazy. Let's try to put some order. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm63xx/patches-5.4/534-board_fast2704.patch')
-rw-r--r--target/linux/bcm63xx/patches-5.4/534-board_fast2704.patch43
1 files changed, 21 insertions, 22 deletions
diff --git a/target/linux/bcm63xx/patches-5.4/534-board_fast2704.patch b/target/linux/bcm63xx/patches-5.4/534-board_fast2704.patch
index 23b90002ff..937f33b558 100644
--- a/target/linux/bcm63xx/patches-5.4/534-board_fast2704.patch
+++ b/target/linux/bcm63xx/patches-5.4/534-board_fast2704.patch
@@ -12,43 +12,42 @@ Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
---
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -341,6 +341,43 @@ static struct board_info __initdata boar
+@@ -338,6 +338,42 @@ static struct board_info __initdata boar
},
},
};
+
+static struct board_info __initdata board_FAST2704V2 = {
-+ .name = "F@ST2704V2",
-+ .expected_cpu_id = 0x6328,
++ .name = "F@ST2704V2",
++ .expected_cpu_id = 0x6328,
+
-+ .has_pci = 1,
-+ .has_ohci0 = 1,
-+ .has_ehci0 = 1,
-+ .has_usbd = 1,
-+
-+ .has_enetsw = 1,
++ .has_pci = 1,
++ .has_ohci0 = 1,
++ .has_ehci0 = 1,
++ .has_usbd = 1,
+
++ .has_enetsw = 1,
+ .enetsw = {
+ .used_ports = {
+ [0] = {
-+ .used = 1,
++ .used = 1,
+ .phy_id = 1,
-+ .name = "Port 1",
++ .name = "Port 1",
+ },
+ [1] = {
-+ .used = 1,
-+ .phy_id = 2,
-+ .name = "Port 2",
++ .used = 1,
++ .phy_id = 2,
++ .name = "Port 2",
+ },
+ [2] = {
-+ .used = 1,
-+ .phy_id = 3,
-+ .name = "Port 3",
++ .used = 1,
++ .phy_id = 3,
++ .name = "Port 3",
+ },
+ [3] = {
-+ .used = 1,
-+ .phy_id = 4,
-+ .name = "Port 4",
++ .used = 1,
++ .phy_id = 4,
++ .name = "Port 4",
+ },
+ },
+ },
@@ -56,7 +55,7 @@ Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
#endif /* CONFIG_BCM63XX_CPU_6328 */
/*
-@@ -1400,6 +1437,7 @@ static const struct board_info __initcon
+@@ -1369,6 +1405,7 @@ static const struct board_info __initcon
&board_963281TAN,
&board_A4001N1,
&board_dsl_274xb_f1,
@@ -64,7 +63,7 @@ Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
#endif /* CONFIG_BCM63XX_CPU_6328 */
#ifdef CONFIG_BCM63XX_CPU_6338
&board_96338gw,
-@@ -1472,6 +1510,7 @@ static struct of_device_id const bcm963x
+@@ -1441,6 +1478,7 @@ static struct of_device_id const bcm963x
{ .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
{ .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
{ .compatible = "d-link,dsl-274xb-f1", .data = &board_dsl_274xb_f1, },