Exemple #1
0
static int Ti3026_calcclock(CPMINFO unsigned int freq, unsigned int fmax, int* in, int* feed, int* post) {
    unsigned int fvco;
    unsigned int lin, lfeed, lpost;

    DBG(__func__)

    fvco = PLL_calcclock(PMINFO freq, fmax, &lin, &lfeed, &lpost);
    fvco >>= (*post = lpost);
    *in = 64 - lin;
    *feed = 64 - lfeed;
    return fvco;
}
static int Ti3026_calcclock(const struct matrox_fb_info *minfo,
			    unsigned int freq, unsigned int fmax, int *in,
			    int *feed, int *post)
{
	unsigned int fvco;
	unsigned int lin, lfeed, lpost;

	DBG(__func__)

	fvco = PLL_calcclock(minfo, freq, fmax, &lin, &lfeed, &lpost);
	fvco >>= (*post = lpost);
	*in = 64 - lin;
	*feed = 64 - lfeed;
	return fvco;
}