aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/rtl8367.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-08-02 09:54:21 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-08-02 09:54:21 +0000
commite2782eae8ee17143d0506078fcf5c0a44b2302fe (patch)
tree45308fcc32ba873080939113a3dfdbae0581eb9d /target/linux/generic/files/drivers/net/phy/rtl8367.c
parent614ca3cc9e73024b8eba81a414b34c700d8d42ca (diff)
downloadupstream-e2782eae8ee17143d0506078fcf5c0a44b2302fe.tar.gz
upstream-e2782eae8ee17143d0506078fcf5c0a44b2302fe.tar.bz2
upstream-e2782eae8ee17143d0506078fcf5c0a44b2302fe.zip
generic: rtl836x: add hw_reset field to struct rtl8366_smi
It will be used to start/stop the switch if that is supported by the given board. SVN-Revision: 32943
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8367.c')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8367.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8367.c b/target/linux/generic/files/drivers/net/phy/rtl8367.c
index 4f2ba6327b..ee2a047013 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8367.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8367.c
@@ -1692,6 +1692,8 @@ static int __devinit rtl8367_probe(struct platform_device *pdev)
smi->gpio_sda = pdata->gpio_sda;
smi->gpio_sck = pdata->gpio_sck;
+ smi->hw_reset = pdata->hw_reset;
+
smi->clk_delay = 1500;
smi->cmd_read = 0xb9;
smi->cmd_write = 0xb8;