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

Go to the source code of this file.

Macros

#define CLKEVT   0 /* gpt0, channel0 as clockevent */
 
#define CLKSRC   1 /* gpt0, channel1 as clocksource */
 
#define CR(x)   ((x) * 0x80 + 0x80)
 
#define IR(x)   ((x) * 0x80 + 0x84)
 
#define LOAD(x)   ((x) * 0x80 + 0x88)
 
#define COUNT(x)   ((x) * 0x80 + 0x8C)
 
#define CTRL_INT_ENABLE   0x0100
 
#define CTRL_ENABLE   0x0020
 
#define CTRL_ONE_SHOT   0x0010
 
#define CTRL_PRESCALER1   0x0
 
#define CTRL_PRESCALER2   0x1
 
#define CTRL_PRESCALER4   0x2
 
#define CTRL_PRESCALER8   0x3
 
#define CTRL_PRESCALER16   0x4
 
#define CTRL_PRESCALER32   0x5
 
#define CTRL_PRESCALER64   0x6
 
#define CTRL_PRESCALER128   0x7
 
#define CTRL_PRESCALER256   0x8
 
#define INT_STATUS   0x1
 
#define SPEAR_MIN_RANGE   4
 

Functions

void __init spear_setup_of_timer (void)
 

Macro Definition Documentation

#define CLKEVT   0 /* gpt0, channel0 as clockevent */

Definition at line 35 of file time.c.

#define CLKSRC   1 /* gpt0, channel1 as clocksource */

Definition at line 36 of file time.c.

#define COUNT (   x)    ((x) * 0x80 + 0x8C)

Definition at line 42 of file time.c.

#define CR (   x)    ((x) * 0x80 + 0x80)

Definition at line 39 of file time.c.

#define CTRL_ENABLE   0x0020

Definition at line 46 of file time.c.

#define CTRL_INT_ENABLE   0x0100

Definition at line 45 of file time.c.

#define CTRL_ONE_SHOT   0x0010

Definition at line 47 of file time.c.

#define CTRL_PRESCALER1   0x0

Definition at line 49 of file time.c.

#define CTRL_PRESCALER128   0x7

Definition at line 56 of file time.c.

#define CTRL_PRESCALER16   0x4

Definition at line 53 of file time.c.

#define CTRL_PRESCALER2   0x1

Definition at line 50 of file time.c.

#define CTRL_PRESCALER256   0x8

Definition at line 57 of file time.c.

#define CTRL_PRESCALER32   0x5

Definition at line 54 of file time.c.

#define CTRL_PRESCALER4   0x2

Definition at line 51 of file time.c.

#define CTRL_PRESCALER64   0x6

Definition at line 55 of file time.c.

#define CTRL_PRESCALER8   0x3

Definition at line 52 of file time.c.

#define INT_STATUS   0x1

Definition at line 59 of file time.c.

#define IR (   x)    ((x) * 0x80 + 0x84)

Definition at line 40 of file time.c.

#define LOAD (   x)    ((x) * 0x80 + 0x88)

Definition at line 41 of file time.c.

#define SPEAR_MIN_RANGE   4

Definition at line 64 of file time.c.

Function Documentation

void __init spear_setup_of_timer ( void  )

Definition at line 207 of file time.c.