diff --git a/drivers/ptp_clock/Kconfig.nxp_enet b/drivers/ptp_clock/Kconfig.nxp_enet index 36252d2f9c..2952466cad 100644 --- a/drivers/ptp_clock/Kconfig.nxp_enet +++ b/drivers/ptp_clock/Kconfig.nxp_enet @@ -5,5 +5,6 @@ config PTP_CLOCK_NXP_ENET bool "NXP ENET PTP Clock driver" default y depends on DT_HAS_NXP_ENET_PTP_CLOCK_ENABLED && NET_L2_PTP + depends on ETH_NXP_ENET help Enable NXP ENET PTP clock support. diff --git a/drivers/ptp_clock/ptp_clock_nxp_enet.c b/drivers/ptp_clock/ptp_clock_nxp_enet.c index 943ff6ca4e..286c6c91d5 100644 --- a/drivers/ptp_clock/ptp_clock_nxp_enet.c +++ b/drivers/ptp_clock/ptp_clock_nxp_enet.c @@ -16,7 +16,7 @@ #include #include -#include "fsl_enet.h" +#include struct ptp_clock_nxp_enet_config { ENET_Type *base; diff --git a/tests/net/ptp/clock/boards/frdm_k64f.overlay b/tests/net/ptp/clock/boards/frdm_k64f.overlay index baccbf8f04..147c7dd5bf 100644 --- a/tests/net/ptp/clock/boards/frdm_k64f.overlay +++ b/tests/net/ptp/clock/boards/frdm_k64f.overlay @@ -4,9 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -&enet { - - ptp { - status = "ok"; - }; +&enet_ptp_clock { + status = "okay"; };