soc: arm: imx_rt10xx: support enet1 external clock
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 <blemouzy@centralp.fr>
This commit is contained in:
parent
d11c0a1664
commit
35849319e0
1 changed files with 5 additions and 0 deletions
|
@ -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,*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue