From 34c1fcc9394ceca2a320de510772f9e62f292100 Mon Sep 17 00:00:00 2001 From: Adam Wojasinski Date: Mon, 3 Jun 2024 13:29:57 +0200 Subject: [PATCH] drivers: eth: native: Align to support ptp_clock driver for PTP subsys Add conditions to enable ptp_clock driver implementation for native_posix when PTP subsystem is enabled. Signed-off-by: Adam Wojasinski --- drivers/ethernet/Kconfig.native_posix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/ethernet/Kconfig.native_posix b/drivers/ethernet/Kconfig.native_posix index 8ab1033d477..d4c065fbdde 100644 --- a/drivers/ethernet/Kconfig.native_posix +++ b/drivers/ethernet/Kconfig.native_posix @@ -15,12 +15,13 @@ if ETH_NATIVE_POSIX config ETH_NATIVE_POSIX_INTERFACE_COUNT int "Number of network interfaces created" default NET_GPTP_NUM_PORTS if NET_GPTP + default PTP_NUM_PORTS if PTP default 1 range 1 32 help By default only one network interface is created. It is possible to create multiple interfaces in certain use cases. For example if - multiple ports are defined in gPTP, then multiple network interfaces + multiple ports are defined in gPTP or PTP, then multiple network interfaces must be created here. config ETH_NATIVE_POSIX_DRV_NAME @@ -40,9 +41,9 @@ config ETH_NATIVE_POSIX_DEV_NAME config ETH_NATIVE_POSIX_PTP_CLOCK bool "PTP clock driver support" - default y if NET_GPTP + default y if NET_GPTP || PTP select PTP_CLOCK - depends on NET_GPTP + depends on NET_GPTP || PTP help Enable PTP clock support.