no-OS
Loading...
Searching...
No Matches
altera_a10_cdr_pll.c File Reference

Driver for the Altera CDR/CMU PLL dynamic reconfiguration. More...

#include <limits.h>
#include "no_os_util.h"
#include "altera_a10_cdr_pll.h"
Include dependency graph for altera_a10_cdr_pll.c:

Macros

#define A10_CDR_PLL_PFD_MIN   50000 /* 50.00 Mhz */
 
#define A10_CDR_PLL_PFD_MAX   800000 /* 800.00 Mhz */
 
#define A10_CDR_PLL_VCO_MIN   4900000 /* 4.90 GHz */
 
#define A10_CDR_PLL_VCO_MAX   14150000 /* 14.15 GHz */
 

Functions

uint32_t altera_a10_cdr_lookup_vco_speed (uint32_t fvco)
 altera_a10_cdr_lookup_vco_speed
 
uint32_t altera_a10_cdr_lookup_vco_speed_fix (uint32_t fvco)
 altera_a10_cdr_lookup_vco_speed_fix
 
uint32_t altera_a10_cdr_lookup_cp_current_pd (uint32_t fvco, uint32_t lpd)
 altera_a10_cdr_lookup_cp_current_pd
 
uint32_t altera_a10_cdr_lookup_clklow_div (uint32_t fref)
 altera_a10_cdr_lookup_clklow_div
 
uint32_t altera_a10_cdr_lookup_fastlock (uint32_t lpd)
 altera_a10_cdr_lookup_fastlock
 
uint32_t altera_a10_cdr_lookup_lf_resistor_pd (uint32_t fvco, uint32_t lpd)
 altera_a10_cdr_lookup_lf_resistor_pd
 
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
 
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
 
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
 
long altera_a10_cdr_pll_round_rate (struct adxcvr *xcvr, uint32_t rate_khz)
 altera_a10_cdr_pll_round_rate
 
int32_t altera_a10_cdr_pll_set_rate (struct adxcvr *xcvr, uint32_t rate_khz)
 altera_a10_cdr_pll_set_rate
 
uint32_t altera_a10_cdr_pll_recalc_rate (struct adxcvr *xcvr)
 altera_a10_cdr_pll_recalc_rate
 

Detailed Description

Driver for the Altera CDR/CMU PLL dynamic reconfiguration.

Author
DBogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2018(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ A10_CDR_PLL_PFD_MAX

#define A10_CDR_PLL_PFD_MAX   800000 /* 800.00 Mhz */

◆ A10_CDR_PLL_PFD_MIN

#define A10_CDR_PLL_PFD_MIN   50000 /* 50.00 Mhz */

◆ A10_CDR_PLL_VCO_MAX

#define A10_CDR_PLL_VCO_MAX   14150000 /* 14.15 GHz */

◆ A10_CDR_PLL_VCO_MIN

#define A10_CDR_PLL_VCO_MIN   4900000 /* 4.90 GHz */

Function Documentation

◆ altera_a10_cdr_calc_params()

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

◆ altera_a10_cdr_lookup_clklow_div()

uint32_t altera_a10_cdr_lookup_clklow_div ( uint32_t fref)

altera_a10_cdr_lookup_clklow_div

◆ altera_a10_cdr_lookup_cp_current_pd()

uint32_t altera_a10_cdr_lookup_cp_current_pd ( uint32_t fvco,
uint32_t lpd )

altera_a10_cdr_lookup_cp_current_pd

◆ altera_a10_cdr_lookup_cp_current_pfd()

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

◆ altera_a10_cdr_lookup_fastlock()

uint32_t altera_a10_cdr_lookup_fastlock ( uint32_t lpd)

altera_a10_cdr_lookup_fastlock

◆ altera_a10_cdr_lookup_lf_resistor_pd()

uint32_t altera_a10_cdr_lookup_lf_resistor_pd ( uint32_t fvco,
uint32_t lpd )

altera_a10_cdr_lookup_lf_resistor_pd

◆ altera_a10_cdr_lookup_lf_resistor_pfd()

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

◆ altera_a10_cdr_lookup_vco_speed()

uint32_t altera_a10_cdr_lookup_vco_speed ( uint32_t fvco)

altera_a10_cdr_lookup_vco_speed

◆ altera_a10_cdr_lookup_vco_speed_fix()

uint32_t altera_a10_cdr_lookup_vco_speed_fix ( uint32_t fvco)

altera_a10_cdr_lookup_vco_speed_fix

◆ altera_a10_cdr_pll_recalc_rate()

uint32_t altera_a10_cdr_pll_recalc_rate ( struct adxcvr * xcvr)

altera_a10_cdr_pll_recalc_rate

◆ altera_a10_cdr_pll_round_rate()

long altera_a10_cdr_pll_round_rate ( struct adxcvr * xcvr,
uint32_t rate_khz )

altera_a10_cdr_pll_round_rate

◆ altera_a10_cdr_pll_set_rate()

int32_t altera_a10_cdr_pll_set_rate ( struct adxcvr * xcvr,
uint32_t rate_khz )

altera_a10_cdr_pll_set_rate