#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.
#define INCREMENTER_DENUMERATOR_RELOAD_OFFSET 0x14 |
#define INCREMENTER_NUMERATOR_OFFSET 0x10 |
#define NUMERATOR_DENUMERATOR_MASK 0xfffff000 |
#define OMAP2_32K_SOURCE "func_32k_ck" |
#define OMAP2_MPU_SOURCE "sys_ck" |
#define OMAP3_32K_SOURCE "omap_32k_fck" |
#define OMAP3_SECURE_TIMER 1 |
#define OMAP4_32K_SOURCE "sys_32k_ck" |
#define OMAP4_MPU_SOURCE "sys_clkin_ck" |
#define OMAP_SYS_TIMER |
( |
|
name | ) |
|
Value:
.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 |
arch_initcall |
( |
omap2_dm_timer_init |
| ) |
|
early_param |
( |
"clocksource" |
, |
|
|
omap2_override_clocksource |
|
|
) |
| |