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

Go to the source code of this file.

Macros

#define MX23_TIMROT_VERSION_OFFSET   0x0a0
 
#define MX28_TIMROT_VERSION_OFFSET   0x120
 
#define BP_TIMROT_MAJOR_VERSION   24
 
#define BV_TIMROT_VERSION_1   0x01
 
#define BV_TIMROT_VERSION_2   0x02
 
#define timrot_is_v1()   (timrot_major_version == BV_TIMROT_VERSION_1)
 
#define HW_TIMROT_ROTCTRL   0x00
 
#define HW_TIMROT_TIMCTRLn(n)   (0x20 + (n) * 0x40)
 
#define HW_TIMROT_TIMCOUNTn(n)   (0x30 + (n) * 0x40)
 
#define HW_TIMROT_RUNNING_COUNTn(n)   (0x30 + (n) * 0x40)
 
#define HW_TIMROT_FIXED_COUNTn(n)   (0x40 + (n) * 0x40)
 
#define BM_TIMROT_TIMCTRLn_RELOAD   (1 << 6)
 
#define BM_TIMROT_TIMCTRLn_UPDATE   (1 << 7)
 
#define BM_TIMROT_TIMCTRLn_IRQ_EN   (1 << 14)
 
#define BM_TIMROT_TIMCTRLn_IRQ   (1 << 15)
 
#define BP_TIMROT_TIMCTRLn_SELECT   0
 
#define BV_TIMROTv1_TIMCTRLn_SELECT__32KHZ_XTAL   0x8
 
#define BV_TIMROTv2_TIMCTRLn_SELECT__32KHZ_XTAL   0xb
 

Functions

void __init mxs_timer_init (void)
 

Macro Definition Documentation

#define BM_TIMROT_TIMCTRLn_IRQ   (1 << 15)

Definition at line 72 of file timer.c.

#define BM_TIMROT_TIMCTRLn_IRQ_EN   (1 << 14)

Definition at line 71 of file timer.c.

#define BM_TIMROT_TIMCTRLn_RELOAD   (1 << 6)

Definition at line 69 of file timer.c.

#define BM_TIMROT_TIMCTRLn_UPDATE   (1 << 7)

Definition at line 70 of file timer.c.

#define BP_TIMROT_MAJOR_VERSION   24

Definition at line 47 of file timer.c.

#define BP_TIMROT_TIMCTRLn_SELECT   0

Definition at line 73 of file timer.c.

#define BV_TIMROT_VERSION_1   0x01

Definition at line 48 of file timer.c.

#define BV_TIMROT_VERSION_2   0x02

Definition at line 49 of file timer.c.

#define BV_TIMROTv1_TIMCTRLn_SELECT__32KHZ_XTAL   0x8

Definition at line 74 of file timer.c.

#define BV_TIMROTv2_TIMCTRLn_SELECT__32KHZ_XTAL   0xb

Definition at line 75 of file timer.c.

#define HW_TIMROT_FIXED_COUNTn (   n)    (0x40 + (n) * 0x40)

Definition at line 67 of file timer.c.

#define HW_TIMROT_ROTCTRL   0x00

Definition at line 61 of file timer.c.

#define HW_TIMROT_RUNNING_COUNTn (   n)    (0x30 + (n) * 0x40)

Definition at line 66 of file timer.c.

#define HW_TIMROT_TIMCOUNTn (   n)    (0x30 + (n) * 0x40)

Definition at line 64 of file timer.c.

#define HW_TIMROT_TIMCTRLn (   n)    (0x20 + (n) * 0x40)

Definition at line 62 of file timer.c.

#define MX23_TIMROT_VERSION_OFFSET   0x0a0

Definition at line 45 of file timer.c.

#define MX28_TIMROT_VERSION_OFFSET   0x120

Definition at line 46 of file timer.c.

#define timrot_is_v1 ( )    (timrot_major_version == BV_TIMROT_VERSION_1)

Definition at line 50 of file timer.c.

Function Documentation

void __init mxs_timer_init ( void  )

Definition at line 249 of file timer.c.