Lines Matching refs:clock_cfg
284 u64 clock_cfg; in ptp_start() local
304 clock_cfg = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_start()
309 clock_cfg &= ~PTP_CLOCK_CFG_EXT_CLK_IN_MASK; in ptp_start()
310 clock_cfg |= PTP_CLOCK_CFG_EXT_CLK_EN; in ptp_start()
314 clock_cfg |= PTP_CLOCK_CFG_TSTMP_EDGE; in ptp_start()
316 clock_cfg &= ~PTP_CLOCK_CFG_TSTMP_IN_MASK; in ptp_start()
317 clock_cfg |= PTP_CLOCK_CFG_TSTMP_EN; in ptp_start()
320 clock_cfg |= PTP_CLOCK_CFG_PTP_EN; in ptp_start()
321 clock_cfg |= PTP_CLOCK_CFG_PPS_EN | PTP_CLOCK_CFG_PPS_INV; in ptp_start()
322 writeq(clock_cfg, ptp->reg_base + PTP_CLOCK_CFG); in ptp_start()
450 u64 clock_cfg; in ptp_remove() local
459 clock_cfg = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_remove()
460 clock_cfg &= ~PTP_CLOCK_CFG_PTP_EN; in ptp_remove()
461 writeq(clock_cfg, ptp->reg_base + PTP_CLOCK_CFG); in ptp_remove()