aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2014-07-06 11:40:51 +0000
committerHauke Mehrtens <hauke@openwrt.org>2014-07-06 11:40:51 +0000
commitfe902ca05125a03d3b4ea4e27d3867faf810f458 (patch)
tree6779e34ff2b669ee7d2a222962a2053b58442f38
parenta8134fb25041c967eab34df588bae8f12f515e02 (diff)
downloadupstream-fe902ca05125a03d3b4ea4e27d3867faf810f458.tar.gz
upstream-fe902ca05125a03d3b4ea4e27d3867faf810f458.tar.bz2
upstream-fe902ca05125a03d3b4ea4e27d3867faf810f458.zip
b53: hardcode reset GPIO for Linksys WRT300N 1.1
According to the thread https://forum.openwrt.org/viewtopic.php?id=48281 b53 uses GPIO 7: [ 4.470000] b53_common: [DBG] b53_switch_reset_gpio using 7 and causes device to self-reboot. GPIO 8 was found in CFE boot log: "Reset switch via GPIO 8 ..." Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41526 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/generic/files/drivers/net/phy/b53/b53_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h b/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h
index ce5b530e98..bc9b53368b 100644
--- a/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h
+++ b/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h
@@ -308,6 +308,7 @@ static inline int b53_switch_get_reset_gpio(struct b53_device *dev)
enum bcm47xx_board board = bcm47xx_board_get();
switch (board) {
+ case BCM47XX_BOARD_LINKSYS_WRT300NV11:
case BCM47XX_BOARD_LINKSYS_WRT310NV1:
return 8;
default: