bcm53xx: 3.18: add early support for Buffalo WZR-900DHP
[openwrt/svn-archive/archive.git] / target / linux / brcm47xx / patches-3.10 / 830-huawei_e970_support.patch
index 5e8a2cb4619020fd5dffa433783821e477aff8f8..6aaac837ccc5eea64c616497aa83a3f1c5492306 100644 (file)
@@ -1,16 +1,16 @@
 --- a/arch/mips/bcm47xx/setup.c
 +++ b/arch/mips/bcm47xx/setup.c
-@@ -33,6 +33,7 @@
+@@ -36,6 +36,7 @@
+ #include <linux/ssb/ssb.h>
+ #include <linux/ssb/ssb_embedded.h>
  #include <linux/bcma/bcma_soc.h>
- #include <linux/serial.h>
- #include <linux/serial_8250.h>
 +#include <linux/gpio_wdt.h>
  #include <asm/bootinfo.h>
  #include <asm/prom.h>
  #include <asm/reboot.h>
-@@ -260,6 +261,33 @@ void __init plat_mem_setup(void)
-       mips_set_machine_name(bcm47xx_board_get_name());
- }
+@@ -278,6 +279,33 @@ static struct fixed_phy_status bcm47xx_f
+       .duplex = DUPLEX_FULL,
+ };
  
 +static struct gpio_wdt_platform_data gpio_wdt_data;
 +
  static int __init bcm47xx_register_bus_complete(void)
  {
        switch (bcm47xx_bus_type) {
-@@ -274,6 +302,8 @@ static int __init bcm47xx_register_bus_c
-               break;
- #endif
-       }
+@@ -297,6 +325,7 @@ static int __init bcm47xx_register_bus_c
+       bcm47xx_leds_register();
+       bcm47xx_workarounds();
+       fixed_phy_add(PHY_POLL, 0, &bcm47xx_fixed_phy_status);
 +      bcm47xx_register_gpio_watchdog();
-+
        return 0;
  }
- device_initcall(bcm47xx_register_bus_complete);
 --- a/arch/mips/configs/bcm47xx_defconfig
 +++ b/arch/mips/configs/bcm47xx_defconfig
 @@ -379,6 +379,7 @@ CONFIG_THERMAL=y