summaryrefslogtreecommitdiff
path: root/arch/arm/plat-stmp3xxx
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@freescale.com>2009-10-14 14:08:40 +0800
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-02-12 17:19:23 +0100
commit15d31ce87004575dbf290a454011bca40fbeeb69 (patch)
tree3769d1d51c4ae1e006ff1d2734e798a48c6e91ca /arch/arm/plat-stmp3xxx
parent6bf0aed3157bb588451455fa38f51c40b8ad95fd (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')
-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;