diff options
author | Richard Leitner <richard.leitner@skidata.com> | 2017-12-11 15:16:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-13 19:22:53 +0300 |
commit | 3a30ae6ef3cba29c83ca791bde0d06f182d5678d (patch) | |
tree | f2da147aeebdf7292a3e1b46e657ca623382310a /include/linux/mdio.h | |
parent | 9cca5d2f1be941c2fbe0ac192a139fe1b93d2c3c (diff) | |
download | linux-3a30ae6ef3cba29c83ca791bde0d06f182d5678d.tar.xz |
phylib: Add device reset delay support
Some PHYs need a minimum time after the reset gpio was asserted and/or
deasserted. To ensure we meet these timing requirements add two new
optional devicetree parameters for the phy: reset-delay-us and
reset-post-delay-us.
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mdio.h')
-rw-r--r-- | include/linux/mdio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mdio.h b/include/linux/mdio.h index 92d4e55ffe67..e37c21d8eb19 100644 --- a/include/linux/mdio.h +++ b/include/linux/mdio.h @@ -41,6 +41,8 @@ struct mdio_device { int addr; int flags; struct gpio_desc *reset; + unsigned int reset_delay; + unsigned int reset_post_delay; }; #define to_mdio_device(d) container_of(d, struct mdio_device, dev) |