Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243483
b: refs/heads/master
c: 93b20e4
h: refs/heads/master
i:
  243481: 6d30953
  243479: 11318f5
v: v3
  • Loading branch information
Jan Weitzel authored and Sascha Hauer committed Mar 23, 2011
1 parent d60c5d4 commit 542a226
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 350ac9ddce074855030b88c9e8c016574d2e9097
refs/heads/master: 93b20e4fdbe1ddc4bef79d968cb1ba453324a499
9 changes: 8 additions & 1 deletion trunk/arch/arm/plat-mxc/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ static void gpt_irq_acknowledge(void)
__raw_writel(V2_TSTAT_OF1, timer_base + V2_TSTAT);
}

static cycle_t dummy_get_cycles(struct clocksource *cs)
{
return 0;
}

static cycle_t mx1_2_get_cycles(struct clocksource *cs)
{
return __raw_readl(timer_base + MX1_2_TCN);
Expand All @@ -118,7 +123,7 @@ static cycle_t v2_get_cycles(struct clocksource *cs)
static struct clocksource clocksource_mxc = {
.name = "mxc_timer1",
.rating = 200,
.read = mx1_2_get_cycles,
.read = dummy_get_cycles,
.mask = CLOCKSOURCE_MASK(32),
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
};
Expand All @@ -129,6 +134,8 @@ static int __init mxc_clocksource_init(struct clk *timer_clk)

if (timer_is_v2())
clocksource_mxc.read = v2_get_cycles;
else
clocksource_mxc.read = mx1_2_get_cycles;

clocksource_register_hz(&clocksource_mxc, c);

Expand Down

0 comments on commit 542a226

Please sign in to comment.