Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355825
b: refs/heads/master
c: 8a4da6e
h: refs/heads/master
i:
  355823: 38be4dc
v: v3
  • Loading branch information
Mark Rutland committed Jan 31, 2013
1 parent 66d431a commit 4dd1e87
Show file tree
Hide file tree
Showing 9 changed files with 477 additions and 387 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: b2deabe3ba664a1ec47400c0ca285e951874e0cc
refs/heads/master: 8a4da6e36c582ff746191eca85b6c1c068dbfbd6
3 changes: 2 additions & 1 deletion trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1572,9 +1572,10 @@ config HAVE_ARM_SCU
help
This option enables support for the ARM system coherency unit

config ARM_ARCH_TIMER
config HAVE_ARM_ARCH_TIMER
bool "Architected timer support"
depends on CPU_V7
select ARM_ARCH_TIMER
help
This option enables support for the ARM architected timer

Expand Down
19 changes: 3 additions & 16 deletions trunk/arch/arm/include/asm/arch_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,14 @@
#include <asm/barrier.h>
#include <asm/errno.h>
#include <linux/clocksource.h>
#include <linux/init.h>
#include <linux/types.h>

#include <clocksource/arm_arch_timer.h>

#ifdef CONFIG_ARM_ARCH_TIMER
int arch_timer_of_register(void);
int arch_timer_sched_clock_init(void);
struct timecounter *arch_timer_get_timecounter(void);

#define ARCH_TIMER_CTRL_ENABLE (1 << 0)
#define ARCH_TIMER_CTRL_IT_MASK (1 << 1)
#define ARCH_TIMER_CTRL_IT_STAT (1 << 2)

#define ARCH_TIMER_REG_CTRL 0
#define ARCH_TIMER_REG_TVAL 1

#define ARCH_TIMER_PHYS_ACCESS 0
#define ARCH_TIMER_VIRT_ACCESS 1

/*
* These register accessors are marked inline so the compiler can
Expand Down Expand Up @@ -128,11 +120,6 @@ static inline int arch_timer_sched_clock_init(void)
{
return -ENXIO;
}

static inline struct timecounter *arch_timer_get_timecounter(void)
{
return NULL;
}
#endif

#endif
Loading

0 comments on commit 4dd1e87

Please sign in to comment.