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/interrupt.h>
#include <linux/irq.h>
#include <linux/clockchips.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <mach/hardware.h>
#include <asm/sched_clock.h>
#include <asm/mach/time.h>
#include <mach/common.h>

Go to the source code of this file.

Macros

#define MXC_TCTL   0x00
 
#define MXC_TCTL_TEN   (1 << 0) /* Enable module */
 
#define MXC_TPRER   0x04
 
#define MX1_2_TCTL_CLK_PCLK1   (1 << 1)
 
#define MX1_2_TCTL_IRQEN   (1 << 4)
 
#define MX1_2_TCTL_FRR   (1 << 8)
 
#define MX1_2_TCMP   0x08
 
#define MX1_2_TCN   0x10
 
#define MX1_2_TSTAT   0x14
 
#define MX2_TSTAT_CAPT   (1 << 1)
 
#define MX2_TSTAT_COMP   (1 << 0)
 
#define V2_TCTL_WAITEN   (1 << 3) /* Wait enable mode */
 
#define V2_TCTL_CLK_IPG   (1 << 6)
 
#define V2_TCTL_CLK_PER   (2 << 6)
 
#define V2_TCTL_FRR   (1 << 9)
 
#define V2_IR   0x0c
 
#define V2_TSTAT   0x08
 
#define V2_TSTAT_OF1   (1 << 0)
 
#define V2_TCN   0x24
 
#define V2_TCMP   0x10
 
#define timer_is_v1()   (cpu_is_mx1() || cpu_is_mx21() || cpu_is_mx27())
 
#define timer_is_v2()   (!timer_is_v1())
 

Functions

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

Macro Definition Documentation

#define MX1_2_TCMP   0x08

Definition at line 50 of file time.c.

#define MX1_2_TCN   0x10

Definition at line 51 of file time.c.

#define MX1_2_TCTL_CLK_PCLK1   (1 << 1)

Definition at line 47 of file time.c.

#define MX1_2_TCTL_FRR   (1 << 8)

Definition at line 49 of file time.c.

#define MX1_2_TCTL_IRQEN   (1 << 4)

Definition at line 48 of file time.c.

#define MX1_2_TSTAT   0x14

Definition at line 52 of file time.c.

#define MX2_TSTAT_CAPT   (1 << 1)

Definition at line 55 of file time.c.

#define MX2_TSTAT_COMP   (1 << 0)

Definition at line 56 of file time.c.

#define MXC_TCTL   0x00

Definition at line 42 of file time.c.

#define MXC_TCTL_TEN   (1 << 0) /* Enable module */

Definition at line 43 of file time.c.

#define MXC_TPRER   0x04

Definition at line 44 of file time.c.

#define timer_is_v1 ( )    (cpu_is_mx1() || cpu_is_mx21() || cpu_is_mx27())

Definition at line 69 of file time.c.

#define timer_is_v2 ( )    (!timer_is_v1())

Definition at line 70 of file time.c.

#define V2_IR   0x0c

Definition at line 63 of file time.c.

#define V2_TCMP   0x10

Definition at line 67 of file time.c.

#define V2_TCN   0x24

Definition at line 66 of file time.c.

#define V2_TCTL_CLK_IPG   (1 << 6)

Definition at line 60 of file time.c.

#define V2_TCTL_CLK_PER   (2 << 6)

Definition at line 61 of file time.c.

#define V2_TCTL_FRR   (1 << 9)

Definition at line 62 of file time.c.

#define V2_TCTL_WAITEN   (1 << 3) /* Wait enable mode */

Definition at line 59 of file time.c.

#define V2_TSTAT   0x08

Definition at line 64 of file time.c.

#define V2_TSTAT_OF1   (1 << 0)

Definition at line 65 of file time.c.

Function Documentation

void __init mxc_timer_init ( void __iomem base,
int  irq 
)

Definition at line 285 of file time.c.