diff options
author | Chen Baozi <baozich@gmail.com> | 2013-08-07 22:05:21 +0800 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-08-21 01:02:32 -0700 |
commit | 42c604ba7c1cbe0be005d473262b91824e920682 (patch) | |
tree | 645d3493f9e8a7338d3ba591b8c5840f3346d9b1 /arch/arm/mach-omap2/timer.c | |
parent | 56cab60600af315b9cbe0be0990a3a86869101c4 (diff) | |
download | op-kernel-dev-42c604ba7c1cbe0be005d473262b91824e920682.zip op-kernel-dev-42c604ba7c1cbe0be005d473262b91824e920682.tar.gz |
ARM: OMAP2+: fix wrong address when loading PRM_FRAC_INCREMENTOR_DENUMERATOR_RELOAD
The denominator should be load from INCREMENTOR_DENUMERATOR_RELOAD_OFFSET
rather than INCREMENTER_NUMERATOR_OFFSET.
This is more likely a typo, since INCREMENTER_DENUMERATOR_RELOAD[23:17] is
reserved. It seems that it won't make much trouble without this fix, because
the useful [11:0] bits are mask and set the right value. Anyway, reading
from a right address is better choice.
Signed-off-by: Chen Baozi <baozich@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index b37e1fc..9265e03 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c @@ -537,7 +537,7 @@ static void __init realtime_counter_init(void) reg |= num; __raw_writel(reg, base + INCREMENTER_NUMERATOR_OFFSET); - reg = __raw_readl(base + INCREMENTER_NUMERATOR_OFFSET) & + reg = __raw_readl(base + INCREMENTER_DENUMERATOR_RELOAD_OFFSET) & NUMERATOR_DENUMERATOR_MASK; reg |= den; __raw_writel(reg, base + INCREMENTER_DENUMERATOR_RELOAD_OFFSET); |