Skip to content

Commit 9ac2ee9

Browse files
decsnyaescolar
authored andcommitted
drivers: nxp_enet: Correct PTP clock dependencies
The dependencies should be in a 'depends on' clause. Also, 'depends on PTP_CLOCK' is redundant because this is within 'if PTP_CLOCK' already. Additionally, conditionally include the PTP header in the mac driver. Signed-off-by: Declan Snyder <[email protected]>
1 parent 1205bab commit 9ac2ee9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/ptp_clock/Kconfig.nxp_enet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
config PTP_CLOCK_NXP_ENET
55
bool "NXP ENET PTP Clock driver"
6-
default y if DT_HAS_NXP_ENET_PTP_CLOCK_ENABLED && \
7-
(PTP_CLOCK || NET_L2_PTP)
6+
default y
7+
depends on DT_HAS_NXP_ENET_PTP_CLOCK_ENABLED && NET_L2_PTP
88
help
99
Enable NXP ENET PTP clock support.

soc/nxp/imxrt/imxrt10xx/soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const clock_enet_pll_config_t ethPllConfig = {
6464
.enableClkOutput1 = true,
6565
#endif
6666
#endif
67-
#if defined(CONFIG_PTP_CLOCK_MCUX)
67+
#if defined(CONFIG_PTP_CLOCK_MCUX) || defined(CONFIG_PTP_CLOCK_NXP_ENET)
6868
.enableClkOutput25M = true,
6969
#else
7070
.enableClkOutput25M = false,

soc/nxp/imxrt/imxrt11xx/soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static ALWAYS_INLINE void clock_init(void)
437437
#endif
438438
#endif
439439

440-
#ifdef CONFIG_PTP_CLOCK_MCUX
440+
#if defined(CONFIG_PTP_CLOCK_MCUX) || defined(CONFIG_PTP_CLOCK_NXP_ENET)
441441
/* 24MHz PTP clock */
442442
rootCfg.mux = kCLOCK_ENET_TIMER1_ClockRoot_MuxOscRc48MDiv2;
443443
rootCfg.div = 1;

0 commit comments

Comments
 (0)