Commit b29376c3 authored by Moshe Green's avatar Moshe Green Committed by Greg Kroah-Hartman

staging: sm750fb: fix block comment style and spelling issues in ddk750_chip.c

Fix the following warning types:
 - line length
 - block comment line * prefix
 - trailing */ on a separate line
found by the checkpatch.pl tool in multiple block comments.

Fix a single spelling error in a comment.
Signed-off-by: default avatarMoshe Green <mgmoshes@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 46b7dd7c
...@@ -145,8 +145,9 @@ static void setMasterClock(unsigned int frequency) ...@@ -145,8 +145,9 @@ static void setMasterClock(unsigned int frequency)
return; return;
if (frequency) { if (frequency) {
/* Set the frequency to the maximum frequency that the SM750 engine can /* Set the frequency to the maximum frequency
run, which is about 190 MHz. */ * that the SM750 engine can run, which is about 190 MHz.
*/
if (frequency > MHz(190)) if (frequency > MHz(190))
frequency = MHz(190); frequency = MHz(190);
...@@ -243,9 +244,10 @@ int ddk750_initHw(initchip_param_t *pInitParam) ...@@ -243,9 +244,10 @@ int ddk750_initHw(initchip_param_t *pInitParam)
setMasterClock(MHz(pInitParam->masterClock)); setMasterClock(MHz(pInitParam->masterClock));
/* Reset the memory controller. If the memory controller is not reset in SM750, /* Reset the memory controller.
the system might hang when sw accesses the memory. * If the memory controller is not reset in SM750,
The memory should be resetted after changing the MXCLK. * the system might hang when sw accesses the memory.
* The memory should be resetted after changing the MXCLK.
*/ */
if (pInitParam->resetMemory == 1) { if (pInitParam->resetMemory == 1) {
reg = PEEK32(MISC_CTRL); reg = PEEK32(MISC_CTRL);
...@@ -289,21 +291,22 @@ int ddk750_initHw(initchip_param_t *pInitParam) ...@@ -289,21 +291,22 @@ int ddk750_initHw(initchip_param_t *pInitParam)
} }
/* /*
monk liu @ 4/6/2011: * monk liu @ 4/6/2011:
re-write the calculatePLL function of ddk750. * re-write the calculatePLL function of ddk750.
the original version function does not use some mathematics tricks and shortcut * the original version function does not use
when it doing the calculation of the best N,M,D combination * some mathematics tricks and shortcut
I think this version gives a little upgrade in speed * when it doing the calculation of the best N,M,D combination
* I think this version gives a little upgrade in speed
750 pll clock formular: *
Request Clock = (Input Clock * M )/(N * X) * 750 pll clock formular:
* Request Clock = (Input Clock * M )/(N * X)
Input Clock = 14318181 hz *
X = 2 power D * Input Clock = 14318181 hz
D ={0,1,2,3,4,5,6} * X = 2 power D
M = {1,...,255} * D ={0,1,2,3,4,5,6}
N = {2,...,15} * M = {1,...,255}
*/ * N = {2,...,15}
*/
unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)
{ {
/* as sm750 register definition, /* as sm750 register definition,
...@@ -318,8 +321,10 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) ...@@ -318,8 +321,10 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)
int max_d = 6; int max_d = 6;
if (getChipType() == SM750LE) { if (getChipType() == SM750LE) {
/* SM750LE don't have prgrammable PLL and M/N values to work on. /* SM750LE don't have
Just return the requested clock. */ * programmable PLL and M/N values to work on.
* Just return the requested clock.
*/
return request_orig; return request_orig;
} }
......
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