[U-Boot] [RFC 9/9] pico-imx7d: Convert to DM Ethernet

Joris Offouga offougajoris at gmail.com
Sun Jan 20 21:18:58 UTC 2019


Furthermore this patch fix request gpio_direction_ouput with gpio_request
require because DM GPIO is enable

Signed-off-by: Joris Offouga <offougajoris at gmail.com>
---
 board/technexion/pico-imx7d/pico-imx7d.c | 1 +
 configs/pico-pi-imx7d_defconfig          | 1 +
 2 files changed, 2 insertions(+)

diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c
index 095242d..cfe6ce3 100644
--- a/board/technexion/pico-imx7d/pico-imx7d.c
+++ b/board/technexion/pico-imx7d/pico-imx7d.c
@@ -111,6 +111,7 @@ static void setup_iomux_fec(void)
 {
 	imx_iomux_v3_setup_multiple_pads(fec1_pads, ARRAY_SIZE(fec1_pads));
 
+	gpio_request(FEC1_RST_GPIO, "phy_rst");
 	gpio_direction_output(FEC1_RST_GPIO, 0);
 	udelay(500);
 	gpio_set_value(FEC1_RST_GPIO, 1);
diff --git a/configs/pico-pi-imx7d_defconfig b/configs/pico-pi-imx7d_defconfig
index 7f5c2e8..ab34382 100644
--- a/configs/pico-pi-imx7d_defconfig
+++ b/configs/pico-pi-imx7d_defconfig
@@ -29,6 +29,7 @@ CONFIG_PINCTRL_IMX7=y
 CONFIG_DM_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_DM_SERIAL=y
+CONFIG_DM_ETH=y
 CONFIG_DM_USB=y
 CONFIG_DM_PMIC=y
 CONFIG_DM_PMIC_PFUZE100=y
-- 
2.7.4



More information about the U-Boot mailing list