Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
timer.c File Reference
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/delay.h>
#include <asm/mach/time.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>

Go to the source code of this file.

Macros

#define VT8500_TIMER_OFFSET   0x0100
 
#define VT8500_TIMER_HZ   3000000
 
#define TIMER_MATCH_VAL   0x0000
 
#define TIMER_COUNT_VAL   0x0010
 
#define TIMER_STATUS_VAL   0x0014
 
#define TIMER_IER_VAL   0x001c /* interrupt enable */
 
#define TIMER_CTRL_VAL   0x0020
 
#define TIMER_AS_VAL   0x0024 /* access status */
 
#define TIMER_COUNT_R_ACTIVE   (1 << 5) /* not ready for read */
 
#define TIMER_COUNT_W_ACTIVE   (1 << 4) /* not ready for write */
 
#define TIMER_MATCH_W_ACTIVE   (1 << 0) /* not ready for write */
 
#define msecs_to_loops(t)   (loops_per_jiffy / 1000 * HZ * t)
 

Functions

void __init vt8500_timer_init (void)
 

Macro Definition Documentation

#define msecs_to_loops (   t)    (loops_per_jiffy / 1000 * HZ * t)

Definition at line 51 of file timer.c.

#define TIMER_AS_VAL   0x0024 /* access status */

Definition at line 46 of file timer.c.

#define TIMER_COUNT_R_ACTIVE   (1 << 5) /* not ready for read */

Definition at line 47 of file timer.c.

#define TIMER_COUNT_VAL   0x0010

Definition at line 42 of file timer.c.

#define TIMER_COUNT_W_ACTIVE   (1 << 4) /* not ready for write */

Definition at line 48 of file timer.c.

#define TIMER_CTRL_VAL   0x0020

Definition at line 45 of file timer.c.

#define TIMER_IER_VAL   0x001c /* interrupt enable */

Definition at line 44 of file timer.c.

#define TIMER_MATCH_VAL   0x0000

Definition at line 41 of file timer.c.

#define TIMER_MATCH_W_ACTIVE   (1 << 0) /* not ready for write */

Definition at line 49 of file timer.c.

#define TIMER_STATUS_VAL   0x0014

Definition at line 43 of file timer.c.

#define VT8500_TIMER_HZ   3000000

Definition at line 40 of file timer.c.

#define VT8500_TIMER_OFFSET   0x0100

Definition at line 39 of file timer.c.

Function Documentation

void __init vt8500_timer_init ( void  )

Definition at line 137 of file timer.c.