diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2019-02-11 23:23:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-12 12:58:47 -0500 |
commit | 73356e4ea895d5d4fb2bed30c32d3293b090f3ce (patch) | |
tree | b1d8fe98ea13dcd8c81953044d7cf173c3a794df /include/linux/fsl | |
parent | 1e562c815e67185e030bcaa06323e95d85d80987 (diff) |
ptp_qoriq: make ptp operations global
This patch is to make functions of ptp operations global,
so that ENETC PTP driver which is a PCI driver for same
1588 timer IP block could reuse them.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/fsl')
-rw-r--r-- | include/linux/fsl/ptp_qoriq.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/fsl/ptp_qoriq.h b/include/linux/fsl/ptp_qoriq.h index c2a32d9ec6ba..75e6f0523cb1 100644 --- a/include/linux/fsl/ptp_qoriq.h +++ b/include/linux/fsl/ptp_qoriq.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define __PTP_QORIQ_H__ | 7 | #define __PTP_QORIQ_H__ |
8 | 8 | ||
9 | #include <linux/io.h> | 9 | #include <linux/io.h> |
10 | #include <linux/interrupt.h> | ||
10 | #include <linux/ptp_clock_kernel.h> | 11 | #include <linux/ptp_clock_kernel.h> |
11 | 12 | ||
12 | /* | 13 | /* |
@@ -171,6 +172,14 @@ static inline void qoriq_write(unsigned __iomem *addr, u32 val) | |||
171 | iowrite32be(val, addr); | 172 | iowrite32be(val, addr); |
172 | } | 173 | } |
173 | 174 | ||
175 | irqreturn_t ptp_qoriq_isr(int irq, void *priv); | ||
176 | int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm); | ||
177 | int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta); | ||
178 | int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); | ||
179 | int ptp_qoriq_settime(struct ptp_clock_info *ptp, | ||
180 | const struct timespec64 *ts); | ||
181 | int ptp_qoriq_enable(struct ptp_clock_info *ptp, | ||
182 | struct ptp_clock_request *rq, int on); | ||
174 | #ifdef CONFIG_DEBUG_FS | 183 | #ifdef CONFIG_DEBUG_FS |
175 | void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq); | 184 | void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq); |
176 | void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq); | 185 | void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq); |