]> 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)
commitc6376c82c957c452f56a958b8b9c697a0967d589
tree658b93ac82b2f6d853e60a85694e903c2f778e16
parent74945e173e602a8e3307ff024fb1edb7d983d850
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