Linux Kernel
3.7.1
|
#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) |
#define msecs_to_loops | ( | t | ) | (loops_per_jiffy / 1000 * HZ * t) |