Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
timer.c File Reference
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/clockchips.h>
#include <linux/clocksource.h>
#include <linux/bitops.h>
#include <linux/irq.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <mach/map.h>
#include <asm/sched_clock.h>
#include <asm/mach/time.h>
#include "common.h"

Go to the source code of this file.

Macros

#define SIRFSOC_TIMER_COUNTER_LO   0x0000
 
#define SIRFSOC_TIMER_COUNTER_HI   0x0004
 
#define SIRFSOC_TIMER_MATCH_0   0x0008
 
#define SIRFSOC_TIMER_MATCH_1   0x000C
 
#define SIRFSOC_TIMER_MATCH_2   0x0010
 
#define SIRFSOC_TIMER_MATCH_3   0x0014
 
#define SIRFSOC_TIMER_MATCH_4   0x0018
 
#define SIRFSOC_TIMER_MATCH_5   0x001C
 
#define SIRFSOC_TIMER_STATUS   0x0020
 
#define SIRFSOC_TIMER_INT_EN   0x0024
 
#define SIRFSOC_TIMER_WATCHDOG_EN   0x0028
 
#define SIRFSOC_TIMER_DIV   0x002C
 
#define SIRFSOC_TIMER_LATCH   0x0030
 
#define SIRFSOC_TIMER_LATCHED_LO   0x0034
 
#define SIRFSOC_TIMER_LATCHED_HI   0x0038
 
#define SIRFSOC_TIMER_WDT_INDEX   5
 
#define SIRFSOC_TIMER_LATCH_BIT   BIT(0)
 
#define SIRFSOC_TIMER_REG_CNT   11
 

Variables

struct sys_timer sirfsoc_timer
 

Macro Definition Documentation

#define SIRFSOC_TIMER_COUNTER_HI   0x0004

Definition at line 27 of file timer.c.

#define SIRFSOC_TIMER_COUNTER_LO   0x0000

Definition at line 26 of file timer.c.

#define SIRFSOC_TIMER_DIV   0x002C

Definition at line 37 of file timer.c.

#define SIRFSOC_TIMER_INT_EN   0x0024

Definition at line 35 of file timer.c.

#define SIRFSOC_TIMER_LATCH   0x0030

Definition at line 38 of file timer.c.

#define SIRFSOC_TIMER_LATCH_BIT   BIT(0)

Definition at line 44 of file timer.c.

#define SIRFSOC_TIMER_LATCHED_HI   0x0038

Definition at line 40 of file timer.c.

#define SIRFSOC_TIMER_LATCHED_LO   0x0034

Definition at line 39 of file timer.c.

#define SIRFSOC_TIMER_MATCH_0   0x0008

Definition at line 28 of file timer.c.

#define SIRFSOC_TIMER_MATCH_1   0x000C

Definition at line 29 of file timer.c.

#define SIRFSOC_TIMER_MATCH_2   0x0010

Definition at line 30 of file timer.c.

#define SIRFSOC_TIMER_MATCH_3   0x0014

Definition at line 31 of file timer.c.

#define SIRFSOC_TIMER_MATCH_4   0x0018

Definition at line 32 of file timer.c.

#define SIRFSOC_TIMER_MATCH_5   0x001C

Definition at line 33 of file timer.c.

#define SIRFSOC_TIMER_REG_CNT   11

Definition at line 46 of file timer.c.

#define SIRFSOC_TIMER_STATUS   0x0020

Definition at line 34 of file timer.c.

#define SIRFSOC_TIMER_WATCHDOG_EN   0x0028

Definition at line 36 of file timer.c.

#define SIRFSOC_TIMER_WDT_INDEX   5

Definition at line 42 of file timer.c.

Variable Documentation

struct sys_timer sirfsoc_timer
Initial value:
= {
.init = sirfsoc_timer_init,
}

Definition at line 249 of file timer.c.