diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2013-07-04 10:35:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-04 14:34:17 -0700 |
commit | 0e0764715d8116484d808f5b3985ca043080788e (patch) | |
tree | 9f486c6604183917901e5385e0391943d0999e1b /include/linux/stmmac.h | |
parent | 25c83b5c2e82560406d5265f42cd147f1eb441d0 (diff) | |
download | linux-stable-0e0764715d8116484d808f5b3985ca043080788e.tar.gz linux-stable-0e0764715d8116484d808f5b3985ca043080788e.tar.bz2 linux-stable-0e0764715d8116484d808f5b3985ca043080788e.zip |
dt:net:stmmac: Add dt specific phy reset callback support.
This patch adds phy reset callback support for stmmac driver via device
trees. It adds three new properties to gmac device tree bindings to
define the reset signal via gpio.
With this patch users can conveniently pass reset gpio number with pre,
pulse and post delay in micro secs via DTs.
active low:
_________ ____________
<pre-delay> |<pulse-delay> |<post-delay>
| |
|_______________|
active high:
________________
<pre-delay> |<pulse-delay> |<post-delay>
| |
________| |___________
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r-- | include/linux/stmmac.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index c1b3ed3fb787..9e495d31516e 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -80,6 +80,10 @@ struct stmmac_mdio_bus_data { unsigned int phy_mask; int *irqs; int probed_phy_irq; +#ifdef CONFIG_OF + int reset_gpio, active_low; + u32 delays[3]; +#endif }; struct stmmac_dma_cfg { |