Skip to content

Instantly share code, notes, and snippets.

@lasselj
lasselj / bcm54210pe_ptp.c
Created February 12, 2022 18:05
static int bcm54210pe_adjfine(struct ptp_clock_info *info, long scaled_ppm)
#define NSE_DPPL_NCO_6_REG 0x087F
#define NSE_DPPL_NCO_1_LSB_REG 0x0873
#define NSE_DPPL_NCO_1_MSB_REG 0x0874
#define SHADOW_REG_CONTROL 0x085C
#define SHADOW_REG_LOAD 0x085D
u64 adj;
u16 lo, hi;
struct bcm54210pe_ptp *ptp = container_of(info, struct bcm54210pe_ptp, caps);