ptp: add debugfs support for ptp_qoriq
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 21 Jan 2019 10:41:42 +0000 (18:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 04:21:57 +0000 (20:21 -0800)
commit19df7510d5cf077c2e88a7690fb7617e6d341beb
tree8f1c49592e7b63d60ff65a299078a6192005f8af
parent47205e2985d9338ccdb5ffc84147260ed7864015
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>
drivers/ptp/Kconfig
drivers/ptp/Makefile
drivers/ptp/ptp_qoriq.c
drivers/ptp/ptp_qoriq_debugfs.c [new file with mode: 0644]
include/linux/fsl/ptp_qoriq.h