diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-05-12 08:31:48 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-05-23 13:04:53 -0400 |
commit | 7ff550de99141cbd3be0129d563cc4554fdde9f6 (patch) | |
tree | 21381e1dcdbd69b461cefc696a1a1fd80f38ce8e /arch/arm/mach-versatile | |
parent | fb593cf38fc426331275d761fefe13096070f56a (diff) |
clocksource: ARM sp804: obtain sp804 timer rate via clks
This allows platforms to specify the rate of the SP804 clocksource via
the clk subsystem. While ARM boards clock these at 1MHz, BCMRing also
has SP804 timers but are clocked at different rates.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-versatile')
-rw-r--r-- | arch/arm/mach-versatile/core.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index aad6d395be44..b0b7de6875ab 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -375,6 +375,10 @@ static struct clk ref24_clk = { | |||
375 | .rate = 24000000, | 375 | .rate = 24000000, |
376 | }; | 376 | }; |
377 | 377 | ||
378 | static struct clk sp804_clk = { | ||
379 | .rate = 1000000, | ||
380 | }; | ||
381 | |||
378 | static struct clk dummy_apb_pclk; | 382 | static struct clk dummy_apb_pclk; |
379 | 383 | ||
380 | static struct clk_lookup lookups[] = { | 384 | static struct clk_lookup lookups[] = { |
@@ -411,7 +415,10 @@ static struct clk_lookup lookups[] = { | |||
411 | }, { /* CLCD */ | 415 | }, { /* CLCD */ |
412 | .dev_id = "dev:20", | 416 | .dev_id = "dev:20", |
413 | .clk = &osc4_clk, | 417 | .clk = &osc4_clk, |
414 | } | 418 | }, { /* SP804 timers */ |
419 | .dev_id = "sp804", | ||
420 | .clk = &sp804_clk, | ||
421 | }, | ||
415 | }; | 422 | }; |
416 | 423 | ||
417 | /* | 424 | /* |