aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-vexpress/v2m.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-05-12 08:31:48 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-05-23 13:04:53 -0400
commit7ff550de99141cbd3be0129d563cc4554fdde9f6 (patch)
tree21381e1dcdbd69b461cefc696a1a1fd80f38ce8e /arch/arm/mach-vexpress/v2m.c
parentfb593cf38fc426331275d761fefe13096070f56a (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-vexpress/v2m.c')
-rw-r--r--arch/arm/mach-vexpress/v2m.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-vexpress/v2m.c b/arch/arm/mach-vexpress/v2m.c
index ccf1f899ac21..77d5db3d7808 100644
--- a/arch/arm/mach-vexpress/v2m.c
+++ b/arch/arm/mach-vexpress/v2m.c
@@ -333,6 +333,10 @@ static struct clk osc2_clk = {
333 .rate = 24000000, 333 .rate = 24000000,
334}; 334};
335 335
336static struct clk v2m_sp804_clk = {
337 .rate = 1000000,
338};
339
336static struct clk dummy_apb_pclk; 340static struct clk dummy_apb_pclk;
337 341
338static struct clk_lookup v2m_lookups[] = { 342static struct clk_lookup v2m_lookups[] = {
@@ -363,6 +367,10 @@ static struct clk_lookup v2m_lookups[] = {
363 }, { /* CLCD */ 367 }, { /* CLCD */
364 .dev_id = "mb:clcd", 368 .dev_id = "mb:clcd",
365 .clk = &osc1_clk, 369 .clk = &osc1_clk,
370 }, { /* SP804 timers */
371 .dev_id = "sp804",
372 .con_id = "v2m-timer1",
373 .clk = &v2m_sp804_clk,
366 }, 374 },
367}; 375};
368 376