Commit 7092d76f authored by Mike Rapoport's avatar Mike Rapoport Committed by Greg Kroah-Hartman

staging: sm750fb: rename getChipClock to get_mxclk_freq

The getChipClock is used to detect MXCLK frequency. Make it's name
reflect what the function is actually doing.
Signed-off-by: default avatarMike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7751e0e2
...@@ -34,7 +34,7 @@ logical_chip_type_t getChipType(void) ...@@ -34,7 +34,7 @@ logical_chip_type_t getChipType(void)
return chip; return chip;
} }
static unsigned int getChipClock(void) static unsigned int get_mxclk_freq(void)
{ {
unsigned int pll_reg; unsigned int pll_reg;
unsigned int M, N, OD, POD; unsigned int M, N, OD, POD;
...@@ -100,7 +100,7 @@ static void setMemoryClock(unsigned int frequency) ...@@ -100,7 +100,7 @@ static void setMemoryClock(unsigned int frequency)
frequency = MHz(336); frequency = MHz(336);
/* Calculate the divisor */ /* Calculate the divisor */
divisor = (unsigned int)roundedDiv(getChipClock(), frequency); divisor = (unsigned int)roundedDiv(get_mxclk_freq(), frequency);
/* Set the corresponding divisor in the register. */ /* Set the corresponding divisor in the register. */
ulReg = PEEK32(CURRENT_GATE); ulReg = PEEK32(CURRENT_GATE);
...@@ -147,7 +147,7 @@ static void setMasterClock(unsigned int frequency) ...@@ -147,7 +147,7 @@ static void setMasterClock(unsigned int frequency)
frequency = MHz(190); frequency = MHz(190);
/* Calculate the divisor */ /* Calculate the divisor */
divisor = (unsigned int)roundedDiv(getChipClock(), frequency); divisor = (unsigned int)roundedDiv(get_mxclk_freq(), frequency);
/* Set the corresponding divisor in the register. */ /* Set the corresponding divisor in the register. */
ulReg = PEEK32(CURRENT_GATE); ulReg = PEEK32(CURRENT_GATE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment