diff options
| author | Sébastien Szymanski <[email protected]> | 2023-10-17 11:44:59 +0200 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2023-12-13 09:48:26 -0300 |
| commit | d5eae216d833c8043d62e86c893bb492c56802f1 (patch) | |
| tree | 085fafcc38df1d90d25372351d0423be9c80f2a7 /board | |
| parent | 9e1f79bd694b277bff44578b8bfc597e29e5350a (diff) | |
net: dwc_eth_qos: Add board_interface_eth_init() for i.MX93
Add a common board_interface_eth_init() called by the DWC MAC driver to
setup the MAC <-> PHY interface according to the PHY mode obtained from
DT.
Remove the board-side configuration in the i.MX93 EVK files.
Signed-off-by: Sébastien Szymanski <[email protected]>
Diffstat (limited to 'board')
| -rw-r--r-- | board/freescale/imx93_evk/imx93_evk.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/board/freescale/imx93_evk/imx93_evk.c b/board/freescale/imx93_evk/imx93_evk.c index f4297f8fd4d..c54dc9d05c5 100644 --- a/board/freescale/imx93_evk/imx93_evk.c +++ b/board/freescale/imx93_evk/imx93_evk.c @@ -49,27 +49,11 @@ int board_phy_config(struct phy_device *phydev) return 0; } -static int setup_eqos(void) -{ - struct blk_ctrl_wakeupmix_regs *bctrl = - (struct blk_ctrl_wakeupmix_regs *)BLK_CTRL_WAKEUPMIX_BASE_ADDR; - - /* set INTF as RGMII, enable RGMII TXC clock */ - clrsetbits_le32(&bctrl->eqos_gpr, - BCTRL_GPR_ENET_QOS_INTF_MODE_MASK, - BCTRL_GPR_ENET_QOS_INTF_SEL_RGMII | BCTRL_GPR_ENET_QOS_CLK_GEN_EN); - - return set_clk_eqos(ENET_125MHZ); -} - int board_init(void) { if (IS_ENABLED(CONFIG_FEC_MXC)) setup_fec(); - if (IS_ENABLED(CONFIG_DWC_ETH_QOS)) - setup_eqos(); - return 0; } |
