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/clocksource.h>
#include <linux/clockchips.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <asm/mach/time.h>
#include <asm/hardware/gic.h>
#include <asm/localtimer.h>
#include <asm/sched_clock.h>
#include "common.h"

Go to the source code of this file.

Macros

#define TIMER_MATCH_VAL   0x0000
 
#define TIMER_COUNT_VAL   0x0004
 
#define TIMER_ENABLE   0x0008
 
#define TIMER_ENABLE_CLR_ON_MATCH_EN   BIT(1)
 
#define TIMER_ENABLE_EN   BIT(0)
 
#define TIMER_CLEAR   0x000C
 
#define DGT_CLK_CTL_DIV_4   0x3
 
#define GPT_HZ   32768
 
#define MSM_DGT_SHIFT   5
 

Variables

struct sys_timer msm7x01_timer
 
struct sys_timer msm7x30_timer
 
struct sys_timer qsd8x50_timer
 

Macro Definition Documentation

#define DGT_CLK_CTL_DIV_4   0x3

Definition at line 40 of file timer.c.

#define GPT_HZ   32768

Definition at line 42 of file timer.c.

#define MSM_DGT_SHIFT   5

Definition at line 44 of file timer.c.

#define TIMER_CLEAR   0x000C

Definition at line 39 of file timer.c.

#define TIMER_COUNT_VAL   0x0004

Definition at line 35 of file timer.c.

#define TIMER_ENABLE   0x0008

Definition at line 36 of file timer.c.

#define TIMER_ENABLE_CLR_ON_MATCH_EN   BIT(1)

Definition at line 37 of file timer.c.

#define TIMER_ENABLE_EN   BIT(0)

Definition at line 38 of file timer.c.

#define TIMER_MATCH_VAL   0x0000

Definition at line 34 of file timer.c.

Variable Documentation

struct clock_event_device* evt

Definition at line 103 of file timer.c.

struct sys_timer msm7x01_timer
Initial value:
= {
.init = msm7x01_timer_init
}

Definition at line 333 of file timer.c.

struct sys_timer msm7x30_timer
Initial value:
= {
.init = msm7x30_timer_init
}

Definition at line 344 of file timer.c.

struct clock_event_device* __percpu* percpu_evt

Definition at line 104 of file timer.c.

struct sys_timer qsd8x50_timer
Initial value:
= {
.init = qsd8x50_timer_init
}

Definition at line 355 of file timer.c.