brcm63xx: move board compatible strings into a table
[openwrt/staging/yousong.git] / target / linux / brcm63xx / patches-3.14 / 532-board_AR-5381u.patch
index 4acca5236f271dbb797242b6ef8e92465e3ada27..fd15650648ca4f6fed85bb255efa9f6076b67539 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -166,6 +166,92 @@ static struct board_info __initdata boar
+@@ -164,6 +164,91 @@ static struct board_info __initdata boar
        },
  };
  
@@ -15,7 +15,6 @@
 +
 +static struct board_info __initdata board_AR5381u = {
 +      .name                                   = "96328A-1241N",
-+      .of_board_id                            = "comtrend,ar-5381u",
 +      .expected_cpu_id                        = 0x6328,
 +
 +      .has_uart0                              = 1,
@@ -93,7 +92,7 @@
  static struct sprom_fixup __initdata ar5387un_fixups[] = {
        { .offset = 2, .value = 0x05bb },
        { .offset = 65, .value = 0x1204 },
-@@ -2946,6 +3032,7 @@ static const struct board_info __initcon
+@@ -2912,6 +2997,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
        &board_AR5387un,
        &board_963281TAN,
        &board_A4001N1,
+@@ -2983,6 +3069,7 @@ static struct of_device_id const bcm963x
+       { .compatible = "adb,a4001n1", .data = &board_A4001N1, },
+       { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
+       { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
++      { .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
+       { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
+ #endif
+ #ifdef CONFIG_BCM63XX_CPU_6338