mxs: remove linux 3.14 support
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 528-board_nb6.patch
index 9754c00fdf140a7146f2f0ce398936a77918d5c6..c77b0183686231247c8cbf54d83bf093cba5ca72 100644 (file)
@@ -1,23 +1,25 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -18,6 +18,7 @@
- #if 0 /* FIXME: 3.14 removed non-DT support */
- #include <linux/spi/74x164.h>
- #endif
+@@ -12,6 +12,8 @@
+ #include <linux/string.h>
+ #include <linux/gpio_keys.h>
+ #include <linux/input.h>
++#include <linux/platform_device.h>
 +#include <linux/rtl8367.h>
  #include <asm/addrspace.h>
  #include <bcm63xx_board.h>
  #include <bcm63xx_cpu.h>
-@@ -46,6 +47,8 @@
- #define NB4_SPI_GPIO_MOSI     7
- #define NB4_SPI_GPIO_CLK      6
- #define NB4_74HC64_GPIO(X)    (NB4_74X164_GPIO_BASE + (X))
+@@ -31,6 +33,9 @@
+ #define BCM963XX_KEYS_POLL_INTERVAL   20
+ #define BCM963XX_KEYS_DEBOUNCE_INTERVAL       (BCM963XX_KEYS_POLL_INTERVAL * 3)
 +#define NB6_GPIO_RTL8367_SDA  18
 +#define NB6_GPIO_RTL8367_SCK  20
- #define CT6373_PID_OFFSET             0xff80
- #define CT6373_74X164_GPIO_BASE       64
-@@ -2717,6 +2720,105 @@ static struct board_info __initdata boar
++
+ /*
+  * known 3368 boards
+  */
+@@ -1292,6 +1297,69 @@ static struct board_info __initdata boar
  };
  #endif /* CONFIG_BCM63XX_CPU_6358 */
  
@@ -56,7 +58,6 @@
 +
 +static struct board_info __initdata board_nb6 = {
 +      .name                           = "NB6",
-+      .of_board_id                    = "sfr,nb6-ser-r0",
 +      .expected_cpu_id                = 0x6362,
 +
 +      .has_uart0                      = 1,
 +              },
 +      },
 +
-+      .buttons = {
-+              {
-+                      .desc           = "reset",
-+                      .gpio           = 24,
-+                      .type           = EV_KEY,
-+                      .code           = KEY_RESTART,
-+                      .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
-+                      .active_low     = 1,
-+              },
-+              {
-+                      .desc           = "wps",
-+                      .gpio           = 25,
-+                      .type           = EV_KEY,
-+                      .code           = KEY_WPS_BUTTON,
-+                      .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
-+                      .active_low     = 1,
-+              },
-+              {
-+                      .desc           = "wlan",
-+                      .gpio           = 12,
-+                      .type           = EV_KEY,
-+                      .code           = KEY_WLAN,
-+                      .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
-+                      .active_low     = 1,
-+              },
-+              {
-+                      .desc           = "service",
-+                      .gpio           = 10,
-+                      .type           = EV_KEY,
-+                      .code           = BTN_0,
-+                      .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
-+                      .active_low     = 1,
-+              },
-+      },
-+
 +      .devs = nb6_devices,
 +      .num_devs = ARRAY_SIZE(nb6_devices),
 +};
  /*
   * known 6368 boards
   */
-@@ -2923,6 +3025,10 @@ static const struct board_info __initcon
+@@ -1443,6 +1511,10 @@ static const struct board_info __initcon
        &board_DVAG3810BN,
  #endif
  
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
+@@ -1510,6 +1582,9 @@ static struct of_device_id const bcm963x
+       { .compatible = "t-com,spw303v", .data = &board_spw303v, },
+       { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
+ #endif
++#ifdef CONFIG_BCM63XX_CPU_6362
++      { .compatible = "sfr,nb6-ser-r0", .data = &board_nb6, },
++#endif
+ #ifdef CONFIG_BCM63XX_CPU_6368
+       { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
+       { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },