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/init.h>
#include <linux/err.h>
#include <linux/time.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/clockchips.h>
#include <linux/clocksource.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <asm/mach/time.h>
#include <asm/smp_twd.h>
#include <asm/sched_clock.h>
#include <mach/iomap.h>
#include <mach/irqs.h>
#include "board.h"
#include "clock.h"

Go to the source code of this file.

Macros

#define RTC_SECONDS   0x08
 
#define RTC_SHADOW_SECONDS   0x0c
 
#define RTC_MILLISECONDS   0x10
 
#define TIMERUS_CNTR_1US   0x10
 
#define TIMERUS_USEC_CFG   0x14
 
#define TIMERUS_CNTR_FREEZE   0x4c
 
#define TIMER1_BASE   0x0
 
#define TIMER2_BASE   0x8
 
#define TIMER3_BASE   0x50
 
#define TIMER4_BASE   0x58
 
#define TIMER_PTV   0x0
 
#define TIMER_PCR   0x4
 
#define timer_writel(value, reg)   __raw_writel(value, timer_reg_base + (reg))
 
#define timer_readl(reg)   __raw_readl(timer_reg_base + (reg))
 
#define tegra_twd_init()   do {} while(0)
 

Variables

struct sys_timer tegra_sys_timer
 

Macro Definition Documentation

#define RTC_MILLISECONDS   0x10

Definition at line 42 of file timer.c.

#define RTC_SECONDS   0x08

Definition at line 40 of file timer.c.

#define RTC_SHADOW_SECONDS   0x0c

Definition at line 41 of file timer.c.

#define tegra_twd_init ( )    do {} while(0)

Definition at line 176 of file timer.c.

#define TIMER1_BASE   0x0

Definition at line 48 of file timer.c.

#define TIMER2_BASE   0x8

Definition at line 49 of file timer.c.

#define TIMER3_BASE   0x50

Definition at line 50 of file timer.c.

#define TIMER4_BASE   0x58

Definition at line 51 of file timer.c.

#define TIMER_PCR   0x4

Definition at line 54 of file timer.c.

#define TIMER_PTV   0x0

Definition at line 53 of file timer.c.

#define timer_readl (   reg)    __raw_readl(timer_reg_base + (reg))

Definition at line 64 of file timer.c.

#define timer_writel (   value,
  reg 
)    __raw_writel(value, timer_reg_base + (reg))

Definition at line 62 of file timer.c.

#define TIMERUS_CNTR_1US   0x10

Definition at line 44 of file timer.c.

#define TIMERUS_CNTR_FREEZE   0x4c

Definition at line 46 of file timer.c.

#define TIMERUS_USEC_CFG   0x14

Definition at line 45 of file timer.c.

Variable Documentation

struct sys_timer tegra_sys_timer
Initial value:
= {
.init = tegra_init_timer,
}

Definition at line 248 of file timer.c.