Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263711
b: refs/heads/master
c: bb9ea77
h: refs/heads/master
i:
  263709: 56b0474
  263707: ef77cf5
  263703: 24ed5e9
  263695: 88c849f
  263679: 9b318b9
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Sep 6, 2011
1 parent ea74ac7 commit 61b0111
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1df726ef0a700587a712a3660b2caa8e533c7de9
refs/heads/master: bb9ea77846620ed2b37e74c852d72c7a476b248c
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-integrator/integrator_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,15 @@ static unsigned long timer_reload;
static void integrator_clocksource_init(u32 khz)
{
void __iomem *base = (void __iomem *)TIMER2_VA_BASE;
u32 ctrl = TIMER_CTRL_ENABLE;
u32 ctrl = TIMER_CTRL_ENABLE | TIMER_CTRL_PERIODIC;

if (khz >= 1500) {
khz /= 16;
ctrl = TIMER_CTRL_DIV16;
ctrl |= TIMER_CTRL_DIV16;
}

writel(ctrl, base + TIMER_CTRL);
writel(0xffff, base + TIMER_LOAD);
writel(ctrl, base + TIMER_CTRL);

clocksource_mmio_init(base + TIMER_VALUE, "timer2",
khz * 1000, 200, 16, clocksource_mmio_readl_down);
Expand Down

0 comments on commit 61b0111

Please sign in to comment.