]> git.baikalelectronics.ru Git - kernel.git/commit
ptp_qoriq: support external trigger stamp FIFO
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 21 Jan 2019 10:41:39 +0000 (18:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 04:21:57 +0000 (20:21 -0800)
commit9b69fc48e824d911d69e27d4a84e996c9caf0d1a
tree658b93ac82b2f6d853e60a85694e903c2f778e16
parente11d74a7cc175b5e0165067769ead0109d1f48c0
ptp_qoriq: support external trigger stamp FIFO

The external trigger stamp FIFO was introduced as a new feature
for QorIQ 1588 timer IP block. This patch is to support it by
adding a new dts property "fsl,extts-fifo". Any QorIQ 1588 timer
supporting this feature is required to add this property in its
dts node.

In addition, the FIFO should be cleaned up before enabling external
trigger interrupts. Otherwise, there will be interrupts immediately
just after enabling external trigger interrupts.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_qoriq.c
include/linux/fsl/ptp_qoriq.h