]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61c2dc145a04b4a0e32df9efc32371b3d8f3e105
tree31f0314275abb4143788500249ccfac327c73acb
parentee5238f0d7c9e7c9957ceefbbdcdc0b9f2bd41ee
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