aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2416/clock.c
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2011-10-14 15:08:56 +0900
committerKukjin Kim <kgene.kim@samsung.com>2011-10-14 15:15:48 +0900
commit0d23d059da0f7a2ce4744b2212d64a17057d8424 (patch)
tree27557a7138c3149abbfc048641a50cec7b71212c /arch/arm/mach-s3c2416/clock.c
parentARM: EXYNOS4: Add support for M-5MOLS camera on Nuri board (diff)
downloadlinux-dev-0d23d059da0f7a2ce4744b2212d64a17057d8424.tar.xz
linux-dev-0d23d059da0f7a2ce4744b2212d64a17057d8424.zip
ARM: S3C2416: Add armdiv_mask constant
The S3C2416/2450 has only 3 bits for the armdiv setting instead of the 4 bits of the S3C2443. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c2416/clock.c')
-rw-r--r--arch/arm/mach-s3c2416/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2416/clock.c b/arch/arm/mach-s3c2416/clock.c
index 72b7c6274c79..5569def1a107 100644
--- a/arch/arm/mach-s3c2416/clock.c
+++ b/arch/arm/mach-s3c2416/clock.c
@@ -127,7 +127,7 @@ static struct clk hsmmc0_clk = {
static inline unsigned int s3c2416_fclk_div(unsigned long clkcon0)
{
- clkcon0 &= 7 << S3C2443_CLKDIV0_ARMDIV_SHIFT;
+ clkcon0 &= S3C2416_CLKDIV0_ARMDIV_MASK;
return armdiv[clkcon0 >> S3C2443_CLKDIV0_ARMDIV_SHIFT];
}