bcm63xx: refactor board patches
[openwrt/staging/chunkeey.git] / target / linux / bcm63xx / patches-5.4 / 527-board_fast2604.patch
index bebdd8be144e3d57978013e87263e874a50c9285..924f1f6cac78e4e4d9eaf2c0f2703203542d6e0c 100644 (file)
@@ -1,29 +1,29 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -501,6 +501,22 @@ static struct board_info __initdata boar
+@@ -490,6 +490,22 @@ static struct board_info __initdata boar
        .has_ehci0                      = 1,
  };
  
 +static struct board_info __initdata board_FAST2604 = {
-+      .name                                           = "F@ST2604",
-+      .expected_cpu_id                        = 0x6348,
++      .name = "F@ST2604",
++      .expected_cpu_id = 0x6348,
 +
-+      .has_pci                                        = 1,
-+      .has_ohci0                                      = 1,
++      .has_pci = 1,
++      .has_ohci0 = 1,
 +
-+      .has_enet1                                      = 1,
++      .has_enet1 = 1,
 +      .enet1 = {
-+              .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,
 +      },
 +};
 +
  static struct board_info __initdata board_rta1025w_16 = {
        .name                           = "RTA1025W_16",
        .expected_cpu_id                = 0x6348,
-@@ -1110,6 +1126,7 @@ static const struct board_info __initcon
+@@ -1079,6 +1095,7 @@ static const struct board_info __initcon
        &board_96348gw_10,
        &board_96348gw_11,
        &board_FAST2404,
@@ -31,7 +31,7 @@
        &board_DV201AMR,
        &board_96348gw_a,
        &board_rta1025w_16,
-@@ -1182,6 +1199,7 @@ static struct of_device_id const bcm963x
+@@ -1151,6 +1168,7 @@ static struct of_device_id const bcm963x
        { .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
        { .compatible = "netgear,dg834g-v4", .data = &board_96348W3, },
        { .compatible = "sagem,fast-2404", .data = &board_FAST2404, },