Skip to content

Commit

Permalink
soc: arm: imx_rt10xx: support enet1 external clock
Browse files Browse the repository at this point in the history
Configure ENET_REF_CLK direction as input when
CONFIG_ETH_MCUX_RMII_EXT_CLK is set to allow Ethernet external clock
usage.

Signed-off-by: Benjamin Lemouzy <[email protected]>
  • Loading branch information
blemouzy authored and MaureenHelm committed Aug 14, 2023
1 parent d11c0a1 commit 3584931
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions soc/arm/nxp_imx/rt/soc_rt10xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,14 @@ static ALWAYS_INLINE void clock_init(void)


#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay) && CONFIG_NET_L2_ETHERNET
#if CONFIG_ETH_MCUX_RMII_EXT_CLK
/* Enable clock input for ENET1 */
IOMUXC_EnableMode(IOMUXC_GPR, kIOMUXC_GPR_ENET1TxClkOutputDir, false);
#else
/* Enable clock output for ENET1 */
IOMUXC_EnableMode(IOMUXC_GPR, kIOMUXC_GPR_ENET1TxClkOutputDir, true);
#endif
#endif

#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet2), okay) && CONFIG_NET_L2_ETHERNET
/* Set ENET2 ref clock to be generated by External OSC,*/
Expand Down

0 comments on commit 3584931

Please sign in to comment.