Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235257
b: refs/heads/master
c: 62248ae
h: refs/heads/master
i:
  235255: d67cbde
v: v3
  • Loading branch information
Colin Cross committed Feb 22, 2011
1 parent 0bc2ba7 commit c875450
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 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: 0cf6230af909a86f81907455eca2a5c9b8f68fe6
refs/heads/master: 62248ae826f51ac2e3d3902c0a657043d95b731c
16 changes: 14 additions & 2 deletions trunk/arch/arm/mach-tegra/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

#include <linux/init.h>
#include <linux/err.h>
#include <linux/sched.h>
#include <linux/time.h>
#include <linux/interrupt.h>
Expand Down Expand Up @@ -193,9 +194,22 @@ static struct irqaction tegra_timer_irq = {

static void __init tegra_init_timer(void)
{
struct clk *clk;
unsigned long rate = clk_measure_input_freq();
int ret;

clk = clk_get_sys("timer", NULL);
BUG_ON(IS_ERR(clk));
clk_enable(clk);

/*
* rtc registers are used by read_persistent_clock, keep the rtc clock
* enabled
*/
clk = clk_get_sys("rtc-tegra", NULL);
BUG_ON(IS_ERR(clk));
clk_enable(clk);

#ifdef CONFIG_HAVE_ARM_TWD
twd_base = IO_ADDRESS(TEGRA_ARM_PERIF_BASE + 0x600);
#endif
Expand Down Expand Up @@ -239,8 +253,6 @@ static void __init tegra_init_timer(void)
tegra_clockevent.cpumask = cpu_all_mask;
tegra_clockevent.irq = tegra_timer_irq.irq;
clockevents_register_device(&tegra_clockevent);

return;
}

struct sys_timer tegra_timer = {
Expand Down

0 comments on commit c875450

Please sign in to comment.