History

ptp_qoriq: convert to use ptp_qoriq_init/free

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.

Yangbo Lu committed 7 years ago

Commit ff545711 parent 73356e42 files · +80 −67Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/fsl/ptp_qoriq.h+3−0
@@ -173,6 +173,9 @@ static inline void qoriq_write(unsigned __iomem *addr, u32 val) · 172 unmodified lines
173}173}
174 174
175irqreturn_t ptp_qoriq_isr(int irq, void *priv);175irqreturn_t ptp_qoriq_isr(int irq, void *priv);
176int ptp_qoriq_init(struct ptp_qoriq *ptp_qoriq, void __iomem *base,
177 const struct ptp_clock_info caps);
178void ptp_qoriq_free(struct ptp_qoriq *ptp_qoriq);
176int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm);179int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm);
177int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta);180int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta);
178int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts);181int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t