~ubuntu-branches/ubuntu/karmic/linux-mvl-dove/karmic-proposed

« back to all changes in this revision

Viewing changes to arch/arm/plat-orion/time.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bader
  • Date: 2010-03-10 22:24:12 UTC
  • mto: (15.1.2 karmic-security)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20100310222412-k86m3r53jw0je7x1
Tags: upstream-2.6.31
ImportĀ upstreamĀ versionĀ 2.6.31

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <linux/irq.h>
21
21
#include <asm/mach/time.h>
22
22
#include <mach/bridge-regs.h>
23
 
#include <plat/time.h>
 
23
#include <mach/hardware.h>
24
24
 
25
25
/*
26
26
 * Number of timer ticks per jiffy.
29
29
 
30
30
 
31
31
/*
 
32
 * Timer block registers.
 
33
 */
 
34
#define TIMER_CTRL              (TIMER_VIRT_BASE + 0x0000)
 
35
#define  TIMER0_EN              0x0001
 
36
#define  TIMER0_RELOAD_EN       0x0002
 
37
#define  TIMER1_EN              0x0004
 
38
#define  TIMER1_RELOAD_EN       0x0008
 
39
#define TIMER0_RELOAD           (TIMER_VIRT_BASE + 0x0010)
 
40
#define TIMER0_VAL              (TIMER_VIRT_BASE + 0x0014)
 
41
#define TIMER1_RELOAD           (TIMER_VIRT_BASE + 0x0018)
 
42
#define TIMER1_VAL              (TIMER_VIRT_BASE + 0x001c)
 
43
 
 
44
 
 
45
/*
32
46
 * Orion's sched_clock implementation. It has a resolution of
33
47
 * at least 7.5ns (133MHz TCLK) and a maximum value of 834 days.
34
48
 *