diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-11-21 05:36:05 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-16 05:13:02 -0500 |
commit | 9d325f23416d1525401d43442bafca2bb254ab74 (patch) | |
tree | 4b8e0ef7c121c263d2cbbea136c97d81d6be0463 /arch/arm/plat-s3c/include | |
parent | b09bcdd4c2f52b54115895c4d62ad82918f71431 (diff) |
[ARM] S3C: Update time initialisation to fix S3C64XX time problems
The S3C64XX timer is running at the wrong rate due to the
assumptions made in the timer initialisation about the way
the pwm dividers work. This means that time on the S3C64XX
runs twice as fast as it should.
Fix the problem by moving to using the clk framework to setup
the pwm timer clock muxes, as the pwm-clock code has all the
necessary knowledge of how the timer clock inputs are routed.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c/include')
-rw-r--r-- | arch/arm/plat-s3c/include/plat/clock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c/include/plat/clock.h b/arch/arm/plat-s3c/include/plat/clock.h index ea1f3ffa9717..a10622eed43a 100644 --- a/arch/arm/plat-s3c/include/plat/clock.h +++ b/arch/arm/plat-s3c/include/plat/clock.h | |||
@@ -81,3 +81,8 @@ extern void s3c2443_setup_clocks(void); | |||
81 | /* S3C64XX specific functions and clocks */ | 81 | /* S3C64XX specific functions and clocks */ |
82 | 82 | ||
83 | extern int s3c64xx_sclk_ctrl(struct clk *clk, int enable); | 83 | extern int s3c64xx_sclk_ctrl(struct clk *clk, int enable); |
84 | |||
85 | /* Init for pwm clock code */ | ||
86 | |||
87 | extern void s3c_pwmclk_init(void); | ||
88 | |||