net: mscc: ocelot: support 4 PTP programmable pins
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 20 Apr 2020 02:46:49 +0000 (10:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:38:33 +0000 (15:38 -0700)
commitcc2d87bb83407c7dfb0900d63b3fcfbf6a59202f
tree31f0314275abb4143788500249ccfac327c73acb
parent94aca0824443d32987b31e656044ff7da425c523
net: mscc: ocelot: support 4 PTP programmable pins

Support 4 PTP programmable pins with only PTP_PF_PEROUT function
for now. The PTP_PF_EXTTS function will be supported in the
future, and it should be implemented separately for Felix and
Ocelot, because of different hardware interrupt implementation
in them.

Since the hardware is not able to support absolute start time,
the periodic clock request only allows start time 0 0. But nsec
could be accepted for PPS case for phase adjustment.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_ptp.c
include/soc/mscc/ocelot.h
include/soc/mscc/ocelot_ptp.h