Skip to content

Commit

Permalink
pico-imx7: add support for rtl8211f phy
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-chang committed Jan 12, 2023
1 parent 7eb18ea commit e48cdb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion board/technexion/pico-imx7d/pico-imx7d.c
Expand Up @@ -388,8 +388,9 @@ static void setup_iomux_fec(void)
imx_iomux_v3_setup_multiple_pads(fec1_pads, ARRAY_SIZE(fec1_pads));

gpio_direction_output(FEC1_RST_GPIO, 0);
udelay(500);
mdelay(35);
gpio_set_value(FEC1_RST_GPIO, 1);
mdelay(75);
}
#endif

Expand Down Expand Up @@ -584,6 +585,9 @@ int board_phy_config(struct phy_device *phydev)
val |= 0x0100;
phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, val);

/* introduce tx-rx clock delay */
phydev->interface = PHY_INTERFACE_MODE_RGMII_ID;

if (phydev->drv->config)
phydev->drv->config(phydev);
return 0;
Expand Down
3 changes: 2 additions & 1 deletion configs/pico-imx7d_spl_defconfig
Expand Up @@ -54,7 +54,8 @@ CONFIG_EFI_PARTITION=y
# CONFIG_PARTITION_UUIDS is not set
CONFIG_SYS_I2C_MXC=y
CONFIG_PHYLIB=y
CONFIG_PHY_BROADCOM=y
CONFIG_PHY_ATHEROS=y
CONFIG_PHY_REALTEK=y
CONFIG_IMX_THERMAL=y
CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y
Expand Down

0 comments on commit e48cdb3

Please sign in to comment.