]> 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)
commit7b66e52e0eb000ac307199ddd65c625c9b35b85b
tree31f0314275abb4143788500249ccfac327c73acb
parentb3b854408a93b28ea6df90ae3c3862aa6f8f4596
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