Go to the documentation of this file.
33 #ifndef ALTERA_A10_CDR_PLL_H_
34 #define ALTERA_A10_CDR_PLL_H_
#define XCVR_REG_RATE_SWITCH_FLAG
Definition: altera_adxcvr.h:81
Driver for the Altera CDR/CMU PLL dynamic reconfiguration.
uint32_t parent_rate_khz
Definition: altera_adxcvr.h:98
#define no_os_min_t(type, x, y)
Definition: no_os_util.h:61
void adxcfg_update(struct adxcvr *xcvr, uint32_t lane, uint32_t reg, uint32_t mask, uint32_t val)
adxcfg_update
Definition: altera_adxcvr.c:215
uint32_t altera_a10_cdr_lookup_lf_resistor_pfd(uint32_t fvco, uint32_t m, uint32_t lpfd)
altera_a10_cdr_lookup_lf_resistor_pfd
Definition: altera_a10_cdr_pll.c:152
ADI JESD204B/C AXI_ADXCVR Highspeed Transceiver Device structure.
Definition: altera_adxcvr.h:89
void adxcfg_release_arbitration(struct adxcvr *xcvr, uint32_t lane, bool calibrate)
adxcfg_release_arbitration
Definition: altera_adxcvr.c:239
int32_t altera_a10_cdr_pll_set_rate(struct adxcvr *xcvr, uint32_t rate_khz)
altera_a10_cdr_pll_set_rate
Definition: altera_a10_cdr_pll.c:357
bool initial_recalc
Definition: altera_adxcvr.h:99
long altera_a10_cdr_pll_round_rate(struct adxcvr *xcvr, uint32_t rate_khz)
altera_a10_cdr_pll_round_rate
Definition: altera_a10_cdr_pll.c:335
#define NO_OS_DIV_ROUND_CLOSEST_ULL(x, y)
Definition: no_os_util.h:56
int32_t adxcfg_read(struct adxcvr *xcvr, uint32_t lane, uint32_t reg, uint32_t *val)
adxcfg_read
Definition: altera_adxcvr.c:204
int32_t altera_a10_cdr_pll_set_rate(struct adxcvr *xcvr, uint32_t rate_khz)
altera_a10_cdr_pll_set_rate
Definition: altera_a10_cdr_pll.c:357
void adxcfg_acquire_arbitration(struct adxcvr *xcvr, uint32_t lane)
adxcfg_acquire_arbitration
Definition: altera_adxcvr.c:229
#define XCVR_REG_CAPAB_PMA
Definition: altera_adxcvr.h:69
#define NO_OS_DIV_ROUND_UP(x, y)
Definition: no_os_util.h:52
uint32_t altera_a10_cdr_pll_recalc_rate(struct adxcvr *xcvr)
altera_a10_cdr_pll_recalc_rate
Definition: altera_a10_cdr_pll.c:479
#define A10_CDR_PLL_PFD_MAX
Definition: altera_a10_cdr_pll.c:45
Driver for the Altera ADXCVR Configuration.
#define XCVR_CAPAB_RX_CAL_BUSY_EN
Definition: altera_adxcvr.h:71
#define XCVR_CAPAB_RX_CAL_BUSY_EN_MASK
Definition: altera_adxcvr.h:70
uint32_t altera_a10_cdr_lookup_fastlock(uint32_t lpd)
altera_a10_cdr_lookup_fastlock
Definition: altera_a10_cdr_pll.c:113
uint32_t altera_a10_cdr_lookup_lf_resistor_pd(uint32_t fvco, uint32_t lpd)
altera_a10_cdr_lookup_lf_resistor_pd
Definition: altera_a10_cdr_pll.c:124
#define A10_CDR_PLL_VCO_MIN
Definition: altera_a10_cdr_pll.c:46
#define XCVR_RATE_SWITCH_FLAG_MASK
Definition: altera_adxcvr.h:82
#define A10_CDR_PLL_VCO_MAX
Definition: altera_a10_cdr_pll.c:47
uint32_t altera_a10_cdr_pll_recalc_rate(struct adxcvr *xcvr)
altera_a10_cdr_pll_recalc_rate
Definition: altera_a10_cdr_pll.c:479
int32_t adxcfg_calibration_check(struct adxcvr *xcvr, uint32_t lane, bool tx)
adxcfg_calibration_check
Definition: altera_adxcvr.c:275
#define no_os_max_t(type, x, y)
Definition: no_os_util.h:66
#define XCVR_CAPAB_TX_CAL_BUSY_DIS
Definition: altera_adxcvr.h:77
int32_t altera_a10_cdr_pll_round_rate(struct adxcvr *xcvr, uint32_t rate_khz)
altera_a10_cdr_pll_round_rate
Definition: altera_a10_cdr_pll.c:335
uint32_t altera_a10_cdr_lookup_vco_speed_fix(uint32_t fvco)
altera_a10_cdr_lookup_vco_speed_fix
Definition: altera_a10_cdr_pll.c:69
#define A10_CDR_PLL_PFD_MIN
Definition: altera_a10_cdr_pll.c:44
void adxcvr_pre_lane_rate_change(struct adxcvr *xcvr)
adxcvr_pre_lane_rate_change
Definition: altera_adxcvr.c:345
uint32_t altera_a10_cdr_lookup_cp_current_pd(uint32_t fvco, uint32_t lpd)
altera_a10_cdr_lookup_cp_current_pd
Definition: altera_a10_cdr_pll.c:90
#define XCVR_CALIB_CMU_CDR_PLL_EN
Definition: altera_adxcvr.h:67
uint32_t altera_a10_cdr_lookup_cp_current_pfd(uint32_t fvco, uint32_t m, uint32_t lpfd)
altera_a10_cdr_lookup_cp_current_pfd
Definition: altera_a10_cdr_pll.c:201
#define XCVR_CAPAB_TX_CAL_BUSY_EN_MASK
Definition: altera_adxcvr.h:75
void altera_a10_cdr_calc_params(uint32_t fref, uint32_t fout, uint32_t *best_n, uint32_t *best_m, uint32_t *best_lpfd, uint32_t *best_lpd, uint32_t *best_fvco)
altera_a10_cdr_calc_params
Definition: altera_a10_cdr_pll.c:276
uint32_t lanes_per_link
Definition: altera_adxcvr.h:93
Header file of utility functions.
uint32_t altera_a10_cdr_lookup_clklow_div(uint32_t fref)
altera_a10_cdr_lookup_clklow_div
Definition: altera_a10_cdr_pll.c:102
#define XCVR_CALIB_CMU_CDR_PLL_EN_MASK
Definition: altera_adxcvr.h:66
void adxcvr_post_lane_rate_change(struct adxcvr *xcvr, unsigned int lane_rate_khz)
adxcvr_post_lane_rate_change
Definition: altera_adxcvr.c:393
uint32_t altera_a10_cdr_lookup_vco_speed(uint32_t fvco)
altera_a10_cdr_lookup_vco_speed
Definition: altera_a10_cdr_pll.c:56
#define XCVR_REG_CALIB_PMA_EN
Definition: altera_adxcvr.h:63
#define XCVR_RATE_SWITCH_FLAG_RATE_SWITCH
Definition: altera_adxcvr.h:83
int32_t adxcfg_write(struct adxcvr *xcvr, uint32_t lane, uint32_t reg, uint32_t val)
adxcfg_write
Definition: altera_adxcvr.c:193