summaryrefslogtreecommitdiffstats
path: root/drivers/ptp/Makefile
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2019-01-21 18:41:42 +0800
committerDavid S. Miller <davem@davemloft.net>2019-01-22 20:21:57 -0800
commit19df7510d5cf077c2e88a7690fb7617e6d341beb (patch)
tree8f1c49592e7b63d60ff65a299078a6192005f8af /drivers/ptp/Makefile
parent47205e2985d9338ccdb5ffc84147260ed7864015 (diff)
downloadblackbird-op-linux-19df7510d5cf077c2e88a7690fb7617e6d341beb.tar.gz
blackbird-op-linux-19df7510d5cf077c2e88a7690fb7617e6d341beb.zip
ptp: add debugfs support for ptp_qoriq
This patch is to add debugfs support for ptp_qoriq. Current debugfs supports to control fiper1/fiper2 loopback mode. If the loopback mode is enabled, the fiper1/fiper2 pulse is looped back into trigger1/ trigger2 input. This is very useful for validating hardware and driver without external hardware. Below is an example to enable fiper1 loopback. echo 1 > /sys/kernel/debug/2d10e00.ptp_clock/fiper1-loopback Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp/Makefile')
-rw-r--r--drivers/ptp/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ptp/Makefile b/drivers/ptp/Makefile
index 19efa9cfa950..677d1d178a3e 100644
--- a/drivers/ptp/Makefile
+++ b/drivers/ptp/Makefile
@@ -9,4 +9,6 @@ obj-$(CONFIG_PTP_1588_CLOCK_DTE) += ptp_dte.o
obj-$(CONFIG_PTP_1588_CLOCK_IXP46X) += ptp_ixp46x.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
+obj-$(CONFIG_PTP_1588_CLOCK_QORIQ) += ptp-qoriq.o
+ptp-qoriq-y += ptp_qoriq.o
+ptp-qoriq-$(CONFIG_DEBUG_FS) += ptp_qoriq_debugfs.o
OpenPOWER on IntegriCloud