diff options
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 |
commit | 81fdb4235e4e5efe7f0fde06b908a4f6ce6a96f3 (patch) | |
tree | f3c63f93b4e7e489e2af24ba39a8ac23c1e22369 /target/linux/bcm63xx/patches-5.4/533-board_rta770w.patch | |
parent | 064dc1e81bc85f6ef8becc38854292853a59d2c2 (diff) | |
download | upstream-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/533-board_rta770w.patch')
-rw-r--r-- | target/linux/bcm63xx/patches-5.4/533-board_rta770w.patch | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/target/linux/bcm63xx/patches-5.4/533-board_rta770w.patch b/target/linux/bcm63xx/patches-5.4/533-board_rta770w.patch index b6092ed068..fcac77b39d 100644 --- a/target/linux/bcm63xx/patches-5.4/533-board_rta770w.patch +++ b/target/linux/bcm63xx/patches-5.4/533-board_rta770w.patch @@ -1,7 +1,7 @@ --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c -@@ -426,6 +426,25 @@ static struct board_info __initdata boar - .force_duplex_full = 1, +@@ -420,6 +420,24 @@ static struct board_info __initdata boar + .force_duplex_full = 1, }, }; + @@ -11,22 +11,21 @@ +// to handle both Annex A as well as Annex B - +// the loaded firmware makes the only difference +static struct board_info __initdata board_rta770w = { -+ .name = "RTA770W", -+ .expected_cpu_id = 0x6345, -+ -+ .has_enet0 = 1, ++ .name = "RTA770W", ++ .expected_cpu_id = 0x6345, + ++ .has_enet0 = 1, + .enet0 = { -+ .has_phy = 1, -+ .phy_id = 0, -+ .force_speed_100 = 1, -+ .force_duplex_full = 1, ++ .has_phy = 1, ++ .phy_id = 0, ++ .force_speed_100 = 1, ++ .force_duplex_full = 1, + }, +}; #endif /* CONFIG_BCM63XX_CPU_6345 */ /* -@@ -1391,6 +1410,7 @@ static const struct board_info __initcon +@@ -1361,6 +1379,7 @@ static const struct board_info __initcon #ifdef CONFIG_BCM63XX_CPU_6345 &board_96345gw2, &board_rta770bw, @@ -34,7 +33,7 @@ #endif /* CONFIG_BCM63XX_CPU_6345 */ #ifdef CONFIG_BCM63XX_CPU_6348 &board_96348r, -@@ -1462,6 +1482,7 @@ static struct of_device_id const bcm963x +@@ -1432,6 +1451,7 @@ static struct of_device_id const bcm963x #ifdef CONFIG_BCM63XX_CPU_6345 { .compatible = "brcm,bcm96345gw2", .data = &board_96345gw2, }, { .compatible = "dynalink,rta770bw", .data = &board_rta770bw, }, |