projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
brcm47xx: add new led and button support
[openwrt.git]
/
target
/
linux
/
brcm47xx
/
patches-3.10
/
830-huawei_e970_support.patch
diff --git
a/target/linux/brcm47xx/patches-3.10/830-huawei_e970_support.patch
b/target/linux/brcm47xx/patches-3.10/830-huawei_e970_support.patch
index
ec38189
..
92a565f
100644
(file)
--- a/
target/linux/brcm47xx/patches-3.10/830-huawei_e970_support.patch
+++ b/
target/linux/brcm47xx/patches-3.10/830-huawei_e970_support.patch
@@
-1,6
+1,6
@@
--- a/arch/mips/bcm47xx/setup.c
+++ b/arch/mips/bcm47xx/setup.c
--- a/arch/mips/bcm47xx/setup.c
+++ b/arch/mips/bcm47xx/setup.c
-@@ -3
1,6 +31
,7 @@
+@@ -3
6,6 +36
,7 @@
#include <linux/ssb/ssb.h>
#include <linux/ssb/ssb_embedded.h>
#include <linux/bcma/bcma_soc.h>
#include <linux/ssb/ssb.h>
#include <linux/ssb/ssb_embedded.h>
#include <linux/bcma/bcma_soc.h>
@@
-8,9
+8,9
@@
#include <asm/bootinfo.h>
#include <asm/prom.h>
#include <asm/reboot.h>
#include <asm/bootinfo.h>
#include <asm/prom.h>
#include <asm/reboot.h>
-@@ -2
39,6 +240,33 @@ void __init plat_mem_setup(void)
- mips_set_machine_name(bcm47xx_board_get_name());
- }
+@@ -2
66,6 +267,33 @@ static struct fixed_phy_status bcm47xx_f
+ .duplex = DUPLEX_FULL,
+ }
;
+static struct gpio_wdt_platform_data gpio_wdt_data;
+
+static struct gpio_wdt_platform_data gpio_wdt_data;
+
@@
-42,15
+42,14
@@
static int __init bcm47xx_register_bus_complete(void)
{
switch (bcm47xx_bus_type) {
static int __init bcm47xx_register_bus_complete(void)
{
switch (bcm47xx_bus_type) {
-@@ -2
53,6 +281,8
@@ static int __init bcm47xx_register_bus_c
-
break
;
- #endif
- }
+@@ -2
84,6 +312,7
@@ static int __init bcm47xx_register_bus_c
+
bcm47xx_buttons_register()
;
+ bcm47xx_leds_register();
+ fixed_phy_add(PHY_POLL, 0, &bcm47xx_fixed_phy_status);
+ bcm47xx_register_gpio_watchdog();
+ bcm47xx_register_gpio_watchdog();
-+
+
return 0;
}
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
--- a/arch/mips/configs/bcm47xx_defconfig
+++ b/arch/mips/configs/bcm47xx_defconfig
@@ -379,6 +379,7 @@ CONFIG_THERMAL=y