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 committed Jun 29, 2023
1 parent e9af821 commit 6436abf
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 @@ -195,9 +195,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(usb1), okay) && CONFIG_USB_DC_NXP_EHCI
CLOCK_EnableUsbhs0PhyPllClock(kCLOCK_Usb480M,
Expand Down

0 comments on commit 6436abf

Please sign in to comment.