net: mvneta: Add GPIO configuration support
authorAditya Prayoga <aditya@kobol.io>
Tue, 4 Dec 2018 16:39:23 +0000 (00:39 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 24 Jan 2019 17:35:29 +0000 (11:35 -0600)
commit18bfc8fa84cd6d748c134b6265786f7d8226f86c
treed8fde132d7af78bd361ae9d51d904c1ad904fb8f
parent92f129f4a098a47bbf889ea31e94edaa16edf256
net: mvneta: Add GPIO configuration support

This patch add GPIO configuration support in mvneta driver.
Driver will handle PHY reset. GPIO pins should be set in device tree.

Ported from mvpp2x
[https://patchwork.ozlabs.org/patch/799654/]

Initial discussion to port the changes into mvneta
[https://patchwork.ozlabs.org/patch/1005765/]

Signed-off-by: Aditya Prayoga <aditya@kobol.io>
Tested-by: Dennis Gilmore <dgilmore@redhat.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvneta.c