Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
time-armada-370-xp.c File Reference
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/kernel.h>
#include <linux/timer.h>
#include <linux/clockchips.h>
#include <linux/interrupt.h>
#include <linux/of.h>
#include <linux/of_irq.h>
#include <linux/of_address.h>
#include <linux/irq.h>
#include <linux/module.h>
#include <asm/sched_clock.h>

Go to the source code of this file.

Macros

#define TIMER_CTRL_OFF   0x0000
 
#define TIMER0_EN   0x0001
 
#define TIMER0_RELOAD_EN   0x0002
 
#define TIMER0_25MHZ   0x0800
 
#define TIMER0_DIV(div)   ((div) << 19)
 
#define TIMER1_EN   0x0004
 
#define TIMER1_RELOAD_EN   0x0008
 
#define TIMER1_25MHZ   0x1000
 
#define TIMER1_DIV(div)   ((div) << 22)
 
#define TIMER_EVENTS_STATUS   0x0004
 
#define TIMER0_CLR_MASK   (~0x1)
 
#define TIMER1_CLR_MASK   (~0x100)
 
#define TIMER0_RELOAD_OFF   0x0010
 
#define TIMER0_VAL_OFF   0x0014
 
#define TIMER1_RELOAD_OFF   0x0018
 
#define TIMER1_VAL_OFF   0x001c
 
#define TIMER_DIVIDER_SHIFT   5
 
#define TIMER_DIVIDER   (1 << TIMER_DIVIDER_SHIFT)
 

Functions

void __init armada_370_xp_timer_init (void)
 

Macro Definition Documentation

#define TIMER0_25MHZ   0x0800

Definition at line 37 of file time-armada-370-xp.c.

#define TIMER0_CLR_MASK   (~0x1)

Definition at line 44 of file time-armada-370-xp.c.

#define TIMER0_DIV (   div)    ((div) << 19)

Definition at line 38 of file time-armada-370-xp.c.

#define TIMER0_EN   0x0001

Definition at line 35 of file time-armada-370-xp.c.

#define TIMER0_RELOAD_EN   0x0002

Definition at line 36 of file time-armada-370-xp.c.

#define TIMER0_RELOAD_OFF   0x0010

Definition at line 46 of file time-armada-370-xp.c.

#define TIMER0_VAL_OFF   0x0014

Definition at line 47 of file time-armada-370-xp.c.

#define TIMER1_25MHZ   0x1000

Definition at line 41 of file time-armada-370-xp.c.

#define TIMER1_CLR_MASK   (~0x100)

Definition at line 45 of file time-armada-370-xp.c.

#define TIMER1_DIV (   div)    ((div) << 22)

Definition at line 42 of file time-armada-370-xp.c.

#define TIMER1_EN   0x0004

Definition at line 39 of file time-armada-370-xp.c.

#define TIMER1_RELOAD_EN   0x0008

Definition at line 40 of file time-armada-370-xp.c.

#define TIMER1_RELOAD_OFF   0x0018

Definition at line 48 of file time-armada-370-xp.c.

#define TIMER1_VAL_OFF   0x001c

Definition at line 49 of file time-armada-370-xp.c.

#define TIMER_CTRL_OFF   0x0000

Definition at line 34 of file time-armada-370-xp.c.

#define TIMER_DIVIDER   (1 << TIMER_DIVIDER_SHIFT)

Definition at line 54 of file time-armada-370-xp.c.

#define TIMER_DIVIDER_SHIFT   5

Definition at line 53 of file time-armada-370-xp.c.

#define TIMER_EVENTS_STATUS   0x0004

Definition at line 43 of file time-armada-370-xp.c.

Function Documentation

void __init armada_370_xp_timer_init ( void  )

Definition at line 165 of file time-armada-370-xp.c.