diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2020-04-20 10:46:49 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-21 15:38:33 -0700 |
commit | cc2d87bb83407c7dfb0900d63b3fcfbf6a59202f (patch) | |
tree | 31f0314275abb4143788500249ccfac327c73acb /include/soc/mscc/ocelot_ptp.h | |
parent | 94aca0824443d32987b31e656044ff7da425c523 (diff) | |
download | lwn-cc2d87bb83407c7dfb0900d63b3fcfbf6a59202f.tar.gz lwn-cc2d87bb83407c7dfb0900d63b3fcfbf6a59202f.zip |
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>
Diffstat (limited to 'include/soc/mscc/ocelot_ptp.h')
-rw-r--r-- | include/soc/mscc/ocelot_ptp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/soc/mscc/ocelot_ptp.h b/include/soc/mscc/ocelot_ptp.h index aae1570eecb1..4a6b2f71b6b2 100644 --- a/include/soc/mscc/ocelot_ptp.h +++ b/include/soc/mscc/ocelot_ptp.h @@ -49,6 +49,10 @@ int ocelot_ptp_settime64(struct ptp_clock_info *ptp, const struct timespec64 *ts); int ocelot_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta); int ocelot_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm); +int ocelot_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, + enum ptp_pin_function func, unsigned int chan); +int ocelot_ptp_enable(struct ptp_clock_info *ptp, + struct ptp_clock_request *rq, int on); int ocelot_init_timestamp(struct ocelot *ocelot, struct ptp_clock_info *info); int ocelot_deinit_timestamp(struct ocelot *ocelot); #endif |