diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-10-16 17:46:09 +0200 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-10-16 17:48:29 +0200 |
commit | 5c37866c6e2f0d19896e4c14f386189c1fdf2295 (patch) | |
tree | e578b6f88a24e2aa86cadc615639262bd89b712f /arch/arm | |
parent | [ARM] S3C24XX: Serial driver debug depends on DEBUG_LL (diff) | |
download | linux-5c37866c6e2f0d19896e4c14f386189c1fdf2295.tar.xz linux-5c37866c6e2f0d19896e4c14f386189c1fdf2295.zip |
[ARM] S3C2443: Fix HCLK rate
Fix the calculation of HCLK on the S3C2443, it should not
have been passed through S3C2443_CLKDIV0_HALF_HCLK.
Re-work of original patch from Wei Shuai <cpuwolf@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s3c2443/clock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c2443/clock.c b/arch/arm/mach-s3c2443/clock.c index 603b5ea1deab..803e24cd29c4 100644 --- a/arch/arm/mach-s3c2443/clock.c +++ b/arch/arm/mach-s3c2443/clock.c @@ -1033,8 +1033,7 @@ void __init s3c2443_init_clocks(int xtal) fclk = pll / s3c2443_fclk_div(clkdiv0); hclk = s3c2443_prediv_getrate(&clk_prediv); - hclk = hclk / s3c2443_get_hdiv(clkdiv0); - hclk = hclk / ((clkdiv0 & S3C2443_CLKDIV0_HALF_HCLK) ? 2 : 1); + hclk /= s3c2443_get_hdiv(clkdiv0); pclk = hclk / ((clkdiv0 & S3C2443_CLKDIV0_HALF_PCLK) ? 2 : 1); s3c24xx_setup_clocks(xtal, fclk, hclk, pclk); |