Commit 17a99367 authored by Declan Snyder's avatar Declan Snyder Committed by Carles Cufi
Browse files

soc: rt11xx: support nxp_enet in soc

Support NXP ENET on RT11xx soc

Signed-off-by: default avatarDeclan Snyder <declan.snyder@nxp.com>
parent e6687612
Loading
Loading
Loading
Loading
+3 −3
Changes for soc/arm/nxp_imx/rt/soc_rt11xx.c: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ static ALWAYS_INLINE void clock_init(void)
	CLOCK_InitPfd(kCLOCK_PllSys2, kCLOCK_Pfd2, 24);

	/* Init System Pll2 pfd3. */
#ifdef CONFIG_ETH_MCUX
#if CONFIG_ETH_MCUX || CONFIG_ETH_NXP_ENET
	CLOCK_InitPfd(kCLOCK_PllSys2, kCLOCK_Pfd3, 24);
#else
	CLOCK_InitPfd(kCLOCK_PllSys2, kCLOCK_Pfd3, 32);
@@ -324,7 +324,7 @@ static ALWAYS_INLINE void clock_init(void)
#endif

	/* Configure BUS using SYS_PLL3_CLK */
#ifdef CONFIG_ETH_MCUX
#if CONFIG_ETH_MCUX || CONFIG_ETH_NXP_ENET
	/* Configure root bus clock at 198M */
	rootCfg.mux = kCLOCK_BUS_ClockRoot_MuxSysPll2Pfd3;
	rootCfg.div = 2;
@@ -396,7 +396,7 @@ static ALWAYS_INLINE void clock_init(void)
#endif


#ifdef CONFIG_ETH_MCUX
#if CONFIG_ETH_MCUX || CONFIG_ETH_NXP_ENET
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
	/* 50 MHz ENET clock */
	rootCfg.mux = kCLOCK_ENET1_ClockRoot_MuxSysPll1Div2;