
From: Sjoerd Simons sjoerd.simons@collabora.co.uk
Add support for the gmac ethernet interface to pinctrl. This hardcodes the setup to match that of the firefly and Radxa Rock2 boards, using the RGMII phy mode for gmac interface and GPIO4B0 as the phy reset GPIO.
Signed-off-by: Sjoerd Simons sjoerd.simons@collabora.co.uk Signed-off-by: Romain Perier romain.perier@collabora.com Acked-by: Philipp Tomsich philipp.tomsich@theobroma-systems.com
Note: The patch has not been merged during the integration of the GMAC driver. It fixes the ethernet 1gbs issue (caused by a drive length issue)
Changes in v2:
- Added Signed-off-by with my email
- Fixed coding style issues for GPIO_BIAS and GPIO_PULL
- Added missing space in comment
arch/arm/include/asm/arch-rockchip/grf_rk3288.h | 178 ++++++++++++++++++++++++ drivers/pinctrl/rockchip/pinctrl_rk3288.c | 118 ++++++++++++++++ 2 files changed, 296 insertions(+)
Reviewed-by: Philipp Tomsich philipp.tomsich@theobroma-systems.com