Lines Matching +full:ptp +full:- +full:timer

1 // SPDX-License-Identifier: GPL-2.0
14 * qoriq ptp registers
17 u32 tmr_ctrl; /* Timer control register */
19 u32 tmr_temask; /* Timer event mask register */
21 u32 tmr_pemask; /* Timer event mask register */
23 u32 tmr_cnt_h; /* Timer counter high register */
24 u32 tmr_cnt_l; /* Timer counter low register */
25 u32 tmr_add; /* Timer drift compensation addend register */
26 u32 tmr_acc; /* Timer accumulator register */
27 u32 tmr_prsc; /* Timer prescale */
29 u32 tmroff_h; /* Timer offset high */
30 u32 tmroff_l; /* Timer offset low */
34 u32 tmr_alarm1_h; /* Timer alarm 1 high register */
35 u32 tmr_alarm1_l; /* Timer alarm 1 high register */
36 u32 tmr_alarm2_h; /* Timer alarm 2 high register */
37 u32 tmr_alarm2_l; /* Timer alarm 2 high register */
41 u32 tmr_fiper1; /* Timer fixed period interval */
42 u32 tmr_fiper2; /* Timer fixed period interval */
43 u32 tmr_fiper3; /* Timer fixed period interval */
78 #define TCLK_PERIOD_SHIFT (16) /* 1588 timer reference clock period. */
88 #define TMSR (1<<5) /* Timer soft reset. */
90 #define TE (1<<2) /* 1588 timer enable. */
91 #define CKSEL_SHIFT (0) /* 1588 Timer reference clock source */
106 #define ALM2EN (1<<17) /* Timer ALM2 event enable */
107 #define ALM1EN (1<<16) /* Timer ALM1 event enable */
112 #define TXP2 (1<<9) /* PTP transmitted timestamp im TXTS2 */
113 #define TXP1 (1<<8) /* PTP transmitted timestamp in TXTS1 */
114 #define RXP (1<<0) /* PTP frame has been received */
117 #define TXP2EN (1<<9) /* Transmit PTP packet event 2 enable */
118 #define TXP1EN (1<<8) /* Transmit PTP packet event 1 enable */
119 #define RXPEN (1<<0) /* Receive PTP packet event enable */
122 #define STAT_VEC_SHIFT (0) /* Timer general purpose status vector */
190 int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm);
191 int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta);
192 int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts);
193 int ptp_qoriq_settime(struct ptp_clock_info *ptp,
195 int ptp_qoriq_enable(struct ptp_clock_info *ptp,