Moved QorIQ PTP clock initialization/free into new functions ptp_qoriq_init()/ptp_qoriq_free(). These functions could also be reused by ENETC PTP drvier which is a PCI driver for same 1588 timer IP block.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -173,6 +173,9 @@ static inline void qoriq_write(unsigned __iomem *addr, u32 val) · 172 unmodified lines | |||
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | irqreturn_t ptp_qoriq_isr(int irq, void *priv); | 175 | irqreturn_t ptp_qoriq_isr(int irq, void *priv); |
| 176 | int ptp_qoriq_init(struct ptp_qoriq *ptp_qoriq, void __iomem *base, | ||
| 177 | const struct ptp_clock_info caps); | ||
| 178 | void ptp_qoriq_free(struct ptp_qoriq *ptp_qoriq); | ||
| 176 | int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm); | 179 | int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm); |
| 177 | int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta); | 180 | int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta); |
| 178 | int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); | 181 | int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); |