
The i.MX95 NETC's Timer is different from the LS1028A NETC's Timer. In addition to swapping the offsets of the upper 32-bit register and the lower 32-bit register and adding ALRAM and FIPER control registers, there are some main registers (such as the TMR_CTRL and TMR_ADD) that are used in different ways even though they have the same functionality. Yes, we can reuse the PTP driver of LS1028A and make some modifications to support i.MX95 NETC's Timer, but this will undoubtedly increase the complexity of the code and make the driver difficult to maintain. So we have added a new driver named ptp_netc to support NETC Timer of i.MX95 and future i.MX SoCs such as i.MX943, i.MX952, etc. Signed-off-by: Wei Fang <wei.fang@nxp.com> Acked-by: Clark Wang <xiaoning.wang@nxp.com>
970 B
SPDX-License-Identifier: GPL-2.0
Makefile for PTP 1588 clock support.
ptp-y := ptp_clock.o ptp_chardev.o ptp_sysfs.o ptp_vclock.o ptp_kvm-$(CONFIG_X86) := ptp_kvm_x86.o ptp_kvm_common.o ptp_kvm-$(CONFIG_HAVE_ARM_SMCCC) := ptp_kvm_arm.o ptp_kvm_common.o obj-$(CONFIG_PTP_1588_CLOCK) += ptp.o obj-$(CONFIG_PTP_1588_CLOCK_DTE) += ptp_dte.o obj-$(CONFIG_PTP_1588_CLOCK_INES) += ptp_ines.o obj-$(CONFIG_PTP_1588_CLOCK_PCH) += ptp_pch.o obj-$(CONFIG_PTP_1588_CLOCK_KVM) += ptp_kvm.o obj-$(CONFIG_PTP_1588_CLOCK_QORIQ) += ptp-qoriq.o ptp-qoriq-y += ptp_qoriq.o ptp-qoriq-$(CONFIG_DEBUG_FS) += ptp_qoriq_debugfs.o obj-$(CONFIG_PTP_1588_CLOCK_IDTCM) += ptp_clockmatrix.o obj-$(CONFIG_PTP_1588_CLOCK_IDT82P33) += ptp_idt82p33.o obj-$(CONFIG_PTP_1588_CLOCK_MOCK) += ptp_mock.o obj-$(CONFIG_PTP_1588_CLOCK_VMW) += ptp_vmw.o obj-$(CONFIG_PTP_1588_CLOCK_OCP) += ptp_ocp.o obj-$(CONFIG_PTP_DFL_TOD) += ptp_dfl_tod.o obj-$(CONFIG_PTP_1588_CLOCK_NETC) += ptp_netc.o