timer.c (fa6d79d27614223d82418023b7f5300f1a1530d3) timer.c (3c7c5dab44d6c8861bc86dab924353d8d40344f8)
1/*
2 * linux/arch/arm/mach-omap2/timer.c
3 *
4 * OMAP2 GP timer support.
5 *
6 * Copyright (C) 2009 Nokia Corporation
7 *
8 * Update to use new clocksource/clockevent layers

--- 27 unchanged lines hidden (view full) ---

36#include <linux/clocksource.h>
37#include <linux/clockchips.h>
38#include <linux/slab.h>
39
40#include <asm/mach/time.h>
41#include <plat/dmtimer.h>
42#include <asm/smp_twd.h>
43#include <asm/sched_clock.h>
1/*
2 * linux/arch/arm/mach-omap2/timer.c
3 *
4 * OMAP2 GP timer support.
5 *
6 * Copyright (C) 2009 Nokia Corporation
7 *
8 * Update to use new clocksource/clockevent layers

--- 27 unchanged lines hidden (view full) ---

36#include <linux/clocksource.h>
37#include <linux/clockchips.h>
38#include <linux/slab.h>
39
40#include <asm/mach/time.h>
41#include <plat/dmtimer.h>
42#include <asm/smp_twd.h>
43#include <asm/sched_clock.h>
44#include <asm/arch_timer.h>
44#include "common.h"
45#include <plat/omap_hwmod.h>
46#include <plat/omap_device.h>
47#include <plat/omap-pm.h>
48
49#include "powerdomain.h"
50
51/* Parent clocks, eventually these will come from the clock framework */

--- 431 unchanged lines hidden (view full) ---

483#endif
484}
485OMAP_SYS_TIMER(4)
486#endif
487
488#ifdef CONFIG_SOC_OMAP5
489static void __init omap5_timer_init(void)
490{
45#include "common.h"
46#include <plat/omap_hwmod.h>
47#include <plat/omap_device.h>
48#include <plat/omap-pm.h>
49
50#include "powerdomain.h"
51
52/* Parent clocks, eventually these will come from the clock framework */

--- 431 unchanged lines hidden (view full) ---

484#endif
485}
486OMAP_SYS_TIMER(4)
487#endif
488
489#ifdef CONFIG_SOC_OMAP5
490static void __init omap5_timer_init(void)
491{
492 int err;
493
491 omap2_gp_clockevent_init(1, OMAP4_CLKEV_SOURCE);
492 omap2_clocksource_init(2, OMAP4_MPU_SOURCE);
493 realtime_counter_init();
494 omap2_gp_clockevent_init(1, OMAP4_CLKEV_SOURCE);
495 omap2_clocksource_init(2, OMAP4_MPU_SOURCE);
496 realtime_counter_init();
497
498 err = arch_timer_of_register();
499 if (err)
500 pr_err("%s: arch_timer_register failed %d\n", __func__, err);
494}
495OMAP_SYS_TIMER(5)
496#endif
497
498/**
499 * omap_timer_init - build and register timer device with an
500 * associated timer hwmod
501 * @oh: timer hwmod pointer to be used to build timer device

--- 104 unchanged lines hidden ---
501}
502OMAP_SYS_TIMER(5)
503#endif
504
505/**
506 * omap_timer_init - build and register timer device with an
507 * associated timer hwmod
508 * @oh: timer hwmod pointer to be used to build timer device

--- 104 unchanged lines hidden ---