zephyr/drivers/ptp_clock/Kconfig.nxp_enet
Declan Snyder f0f83d214e drivers: ptp_clock_nxp_enet: misc fixes
1. Correct node label in k64 overlay for ptp test
   - Not sure if this actually matters since it appears
     that actual hardware is no longer tested in net tests

2. Include fsl_enet with <> instead of "".

3. Build the ptp clock driver only if the ethernet driver is built
   - Technically I think the 1588 timer should be able to be used
     even if the ethernet mac is not used, but I would imagine this
     to be an extraordinarily rare, weird, and niche use case, so to fix
     the current CI error caused by net test disabling ethernet drivers,
     couple the ptp clock driver to the ethernet driver in the build
     configuration.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-04-23 15:31:33 +02:00

11 lines
260 B
Plaintext

# Copyright 2023 NXP
# SPDX-License-Identifier: Apache-2.0
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.