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)
commit6815d8b09282c1df8e016bd2fabf25ada6d4462b
tree658b93ac82b2f6d853e60a85694e903c2f778e16
parentb0bc10cc8887214c997bfe4f47217b04db4733a2
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