return chip;
}
-static unsigned int getChipClock(void)
+static unsigned int get_mxclk_freq(void)
{
unsigned int pll_reg;
unsigned int M, N, OD, POD;
frequency = MHz(336);
/* Calculate the divisor */
- divisor = (unsigned int)roundedDiv(getChipClock(), frequency);
+ divisor = (unsigned int)roundedDiv(get_mxclk_freq(), frequency);
/* Set the corresponding divisor in the register. */
ulReg = PEEK32(CURRENT_GATE);
frequency = MHz(190);
/* Calculate the divisor */
- divisor = (unsigned int)roundedDiv(getChipClock(), frequency);
+ divisor = (unsigned int)roundedDiv(get_mxclk_freq(), frequency);
/* Set the corresponding divisor in the register. */
ulReg = PEEK32(CURRENT_GATE);