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/init.h>
#include <linux/time.h>
#include <linux/interrupt.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/irq.h>
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <asm/mach/time.h>
#include <asm/smp_twd.h>
#include <asm/sched_clock.h>
#include <asm/arch_timer.h>
#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include <plat/dmtimer.h>
#include <plat/omap-pm.h>
#include "soc.h"
#include "common.h"
#include "powerdomain.h"

Go to the source code of this file.

Macros

#define OMAP2_MPU_SOURCE   "sys_ck"
 
#define OMAP3_MPU_SOURCE   OMAP2_MPU_SOURCE
 
#define OMAP4_MPU_SOURCE   "sys_clkin_ck"
 
#define OMAP2_32K_SOURCE   "func_32k_ck"
 
#define OMAP3_32K_SOURCE   "omap_32k_fck"
 
#define OMAP4_32K_SOURCE   "sys_32k_ck"
 
#define OMAP2_CLKEV_SOURCE   OMAP2_MPU_SOURCE
 
#define OMAP3_CLKEV_SOURCE   OMAP3_MPU_SOURCE
 
#define OMAP4_CLKEV_SOURCE   OMAP4_MPU_SOURCE
 
#define OMAP3_SECURE_TIMER   1
 
#define REALTIME_COUNTER_BASE   0x48243200
 
#define INCREMENTER_NUMERATOR_OFFSET   0x10
 
#define INCREMENTER_DENUMERATOR_RELOAD_OFFSET   0x14
 
#define NUMERATOR_DENUMERATOR_MASK   0xfffff000
 
#define OMAP_SYS_TIMER_INIT(name, clkev_nr, clkev_src,clksrc_nr, clksrc_src)
 
#define OMAP_SYS_TIMER(name)
 

Functions

 arch_initcall (omap2_dm_timer_init)
 
 early_param ("clocksource", omap2_override_clocksource)
 

Macro Definition Documentation

#define INCREMENTER_DENUMERATOR_RELOAD_OFFSET   0x14

Definition at line 78 of file timer.c.

#define INCREMENTER_NUMERATOR_OFFSET   0x10

Definition at line 77 of file timer.c.

#define NUMERATOR_DENUMERATOR_MASK   0xfffff000

Definition at line 79 of file timer.c.

#define OMAP2_32K_SOURCE   "func_32k_ck"

Definition at line 60 of file timer.c.

#define OMAP2_CLKEV_SOURCE   OMAP2_MPU_SOURCE

Definition at line 70 of file timer.c.

#define OMAP2_MPU_SOURCE   "sys_ck"

Definition at line 57 of file timer.c.

#define OMAP3_32K_SOURCE   "omap_32k_fck"

Definition at line 61 of file timer.c.

#define OMAP3_CLKEV_SOURCE   OMAP3_MPU_SOURCE

Definition at line 71 of file timer.c.

#define OMAP3_MPU_SOURCE   OMAP2_MPU_SOURCE

Definition at line 58 of file timer.c.

#define OMAP3_SECURE_TIMER   1

Definition at line 73 of file timer.c.

#define OMAP4_32K_SOURCE   "sys_32k_ck"

Definition at line 62 of file timer.c.

#define OMAP4_CLKEV_SOURCE   OMAP4_MPU_SOURCE

Definition at line 72 of file timer.c.

#define OMAP4_MPU_SOURCE   "sys_clkin_ck"

Definition at line 59 of file timer.c.

#define OMAP_SYS_TIMER (   name)
Value:
struct sys_timer omap##name##_timer = { \
.init = omap##name##_timer_init, \
};

Definition at line 444 of file timer.c.

#define OMAP_SYS_TIMER_INIT (   name,
  clkev_nr,
  clkev_src,
  clksrc_nr,
  clksrc_src 
)
Value:
static void __init omap##name##_timer_init(void) \
{ \
omap2_gp_clockevent_init((clkev_nr), clkev_src); \
omap2_clocksource_init((clksrc_nr), clksrc_src); \
}

Definition at line 436 of file timer.c.

#define REALTIME_COUNTER_BASE   0x48243200

Definition at line 76 of file timer.c.

Function Documentation

arch_initcall ( omap2_dm_timer_init  )
early_param ( "clocksource"  ,
omap2_override_clocksource   
)