diff options
author | Tarun Kanti DebBarma <tarun.kanti@ti.com> | 2011-06-10 12:12:31 +0530 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2011-07-14 11:52:58 -0700 |
commit | b34637c91c079d6e8ab069a77e3c4f36072e0d25 (patch) | |
tree | 61f31be10a6d1208efe7dd6bc62a543764b8d55a /arch/arm/mach-omap2/omap_hwmod_44xx_data.c | |
parent | 6eaaba7aa638a3796848c7be00471947e75fc2ed (diff) | |
download | kernel_samsung_tuna-b34637c91c079d6e8ab069a77e3c4f36072e0d25.zip kernel_samsung_tuna-b34637c91c079d6e8ab069a77e3c4f36072e0d25.tar.gz kernel_samsung_tuna-b34637c91c079d6e8ab069a77e3c4f36072e0d25.tar.bz2 |
OMAP2+: dmtimer: convert to platform devices
Add routines to converts dmtimers to platform devices. The device data
is obtained from hwmod database of respective platform and is registered
to device model after successful binding to driver. It also provides
provision to access timers during early boot when pm_runtime framework
is not completely up and running.
Change-Id: I228ffa3f91f54b6f7f185565cbb4357823723c4a
[girishsg@ti.com: Fixed review comments]
Signed-off-by: Girish S G <girishsg@ti.com>
Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Signed-off-by: Thara Gopinath <thara@ti.com>
Acked-by: Cousson, Benoit <b-cousson@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_44xx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index b2e133d..de12f88 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c @@ -4545,6 +4545,11 @@ static struct omap_hwmod_class omap44xx_timer_hwmod_class = { .rev = OMAP_TIMER_IP_VERSION_2, }; +/* secure timer can assign this to .dev_attr field */ +static struct omap_secure_timer_dev_attr secure_timer_dev_attr = { + .is_secure_timer = true, +}; + /* timer1 */ static struct omap_hwmod omap44xx_timer1_hwmod; static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = { |