Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
epit.c File Reference
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/clockchips.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <mach/hardware.h>
#include <asm/mach/time.h>
#include <mach/common.h>

Go to the source code of this file.

Macros

#define EPITCR   0x00
 
#define EPITSR   0x04
 
#define EPITLR   0x08
 
#define EPITCMPR   0x0c
 
#define EPITCNR   0x10
 
#define EPITCR_EN   (1 << 0)
 
#define EPITCR_ENMOD   (1 << 1)
 
#define EPITCR_OCIEN   (1 << 2)
 
#define EPITCR_RLD   (1 << 3)
 
#define EPITCR_PRESC(x)   (((x) & 0xfff) << 4)
 
#define EPITCR_SWR   (1 << 16)
 
#define EPITCR_IOVW   (1 << 17)
 
#define EPITCR_DBGEN   (1 << 18)
 
#define EPITCR_WAITEN   (1 << 19)
 
#define EPITCR_RES   (1 << 20)
 
#define EPITCR_STOPEN   (1 << 21)
 
#define EPITCR_OM_DISCON   (0 << 22)
 
#define EPITCR_OM_TOGGLE   (1 << 22)
 
#define EPITCR_OM_CLEAR   (2 << 22)
 
#define EPITCR_OM_SET   (3 << 22)
 
#define EPITCR_CLKSRC_OFF   (0 << 24)
 
#define EPITCR_CLKSRC_PERIPHERAL   (1 << 24)
 
#define EPITCR_CLKSRC_REF_HIGH   (1 << 24)
 
#define EPITCR_CLKSRC_REF_LOW   (3 << 24)
 
#define EPITSR_OCIF   (1 << 0)
 

Functions

void __init epit_timer_init (void __iomem *base, int irq)
 

Macro Definition Documentation

#define EPITCMPR   0x0c

Definition at line 24 of file epit.c.

#define EPITCNR   0x10

Definition at line 25 of file epit.c.

#define EPITCR   0x00

Definition at line 21 of file epit.c.

#define EPITCR_CLKSRC_OFF   (0 << 24)

Definition at line 42 of file epit.c.

#define EPITCR_CLKSRC_PERIPHERAL   (1 << 24)

Definition at line 43 of file epit.c.

#define EPITCR_CLKSRC_REF_HIGH   (1 << 24)

Definition at line 44 of file epit.c.

#define EPITCR_CLKSRC_REF_LOW   (3 << 24)

Definition at line 45 of file epit.c.

#define EPITCR_DBGEN   (1 << 18)

Definition at line 34 of file epit.c.

#define EPITCR_EN   (1 << 0)

Definition at line 27 of file epit.c.

#define EPITCR_ENMOD   (1 << 1)

Definition at line 28 of file epit.c.

#define EPITCR_IOVW   (1 << 17)

Definition at line 33 of file epit.c.

#define EPITCR_OCIEN   (1 << 2)

Definition at line 29 of file epit.c.

#define EPITCR_OM_CLEAR   (2 << 22)

Definition at line 40 of file epit.c.

#define EPITCR_OM_DISCON   (0 << 22)

Definition at line 38 of file epit.c.

#define EPITCR_OM_SET   (3 << 22)

Definition at line 41 of file epit.c.

#define EPITCR_OM_TOGGLE   (1 << 22)

Definition at line 39 of file epit.c.

#define EPITCR_PRESC (   x)    (((x) & 0xfff) << 4)

Definition at line 31 of file epit.c.

#define EPITCR_RES   (1 << 20)

Definition at line 36 of file epit.c.

#define EPITCR_RLD   (1 << 3)

Definition at line 30 of file epit.c.

#define EPITCR_STOPEN   (1 << 21)

Definition at line 37 of file epit.c.

#define EPITCR_SWR   (1 << 16)

Definition at line 32 of file epit.c.

#define EPITCR_WAITEN   (1 << 19)

Definition at line 35 of file epit.c.

#define EPITLR   0x08

Definition at line 23 of file epit.c.

#define EPITSR   0x04

Definition at line 22 of file epit.c.

#define EPITSR_OCIF   (1 << 0)

Definition at line 47 of file epit.c.

Function Documentation

void __init epit_timer_init ( void __iomem base,
int  irq 
)

Definition at line 205 of file epit.c.