summaryrefslogtreecommitdiff
path: root/arch/arm/plat-stmp3xxx/clock.c
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@freescale.com>2009-10-14 14:08:40 +0800
committerRob Herring <r.herring@freescale.com>2009-10-26 16:57:49 -0500
commit463f6d709c133a68a5f191b06bbc302ec8481348 (patch)
tree3769d1d51c4ae1e006ff1d2734e798a48c6e91ca /arch/arm/plat-stmp3xxx/clock.c
parent023846a90c7b84da9b1116a9c605db0aebfdf3fe (diff)
ENGR00117252 Fix iMX23 dotclk is double as expected value
Dotclk is double as expected value. This fix actually is workaround. Signed-off-by: Frank Li <Frank.Li@freescale.com>
Diffstat (limited to 'arch/arm/plat-stmp3xxx/clock.c')
-rw-r--r--arch/arm/plat-stmp3xxx/clock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-stmp3xxx/clock.c b/arch/arm/plat-stmp3xxx/clock.c
index 1de31090958b..68241827821b 100644
--- a/arch/arm/plat-stmp3xxx/clock.c
+++ b/arch/arm/plat-stmp3xxx/clock.c
@@ -219,6 +219,7 @@ static int lcdif_set_rate(struct clk *clk, u32 rate)
* 108 * ns_cycle <= 875 * div
*/
u32 ns_cycle = 1000000 / rate;
+ ns_cycle *= 2; /* Fix calculate double frequency */
u32 div, reg_val;
u32 lowest_result = (u32) -1;
u32 lowest_div = 0, lowest_fracdiv = 0;