From 157371effb5813110c303322025205df02b8282c Mon Sep 17 00:00:00 2001 From: Frank Sautter Date: Tue, 14 Nov 2017 00:10:59 +0100 Subject: [PATCH] Set GPIO-mode for MDC and MDIO pins Merges #1127 --- components/ethernet/eth_phy/phy_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/ethernet/eth_phy/phy_common.c b/components/ethernet/eth_phy/phy_common.c index a72a6daf86..88e5d0c73a 100644 --- a/components/ethernet/eth_phy/phy_common.c +++ b/components/ethernet/eth_phy/phy_common.c @@ -41,8 +41,10 @@ void phy_rmii_configure_data_interface_pins(void) void phy_rmii_smi_configure_pins(uint8_t mdc_gpio, uint8_t mdio_gpio) { gpio_matrix_out(mdc_gpio, EMAC_MDC_O_IDX, 0, 0); + PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[mdc_gpio], PIN_FUNC_GPIO); gpio_matrix_out(mdio_gpio, EMAC_MDO_O_IDX, 0, 0); gpio_matrix_in(mdio_gpio, EMAC_MDI_I_IDX, 0); + PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[mdio_gpio], PIN_FUNC_GPIO); } void phy_mii_enable_flow_ctrl(void)