aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat
diff options
context:
space:
mode:
authorTarun Kanti DebBarma <tarun.kanti@ti.com>2011-09-20 07:30:17 -0400
committerTony Lindgren <tony@atomide.com>2011-09-21 18:50:31 -0400
commit97933d6ced601de013f17ad3f589e72cf2266bba (patch)
tree429e5afed768920acbd9661e5bc81eab24a2323e /arch/arm/plat-omap/include/plat
parent318c3e15cd55c73a26ae22a65a8183655b3003f9 (diff)
ARM: OMAP1: dmtimer: conversion to platform devices
Convert OMAP1 dmtimers into a platform devices and then registers with device model framework so that it can be bound to corresponding driver. Signed-off-by: Thara Gopinath <thara@ti.com> Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com> Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Cousson, Benoit <b-cousson@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat')
-rw-r--r--arch/arm/plat-omap/include/plat/dmtimer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/dmtimer.h b/arch/arm/plat-omap/include/plat/dmtimer.h
index ad554d36866d..1751751862da 100644
--- a/arch/arm/plat-omap/include/plat/dmtimer.h
+++ b/arch/arm/plat-omap/include/plat/dmtimer.h
@@ -35,6 +35,7 @@
35#include <linux/clk.h> 35#include <linux/clk.h>
36#include <linux/delay.h> 36#include <linux/delay.h>
37#include <linux/io.h> 37#include <linux/io.h>
38#include <linux/platform_device.h>
38 39
39#ifndef __ASM_ARCH_DMTIMER_H 40#ifndef __ASM_ARCH_DMTIMER_H
40#define __ASM_ARCH_DMTIMER_H 41#define __ASM_ARCH_DMTIMER_H
@@ -62,6 +63,12 @@
62struct omap_dm_timer; 63struct omap_dm_timer;
63struct clk; 64struct clk;
64 65
66struct dmtimer_platform_data {
67 int (*set_timer_src)(struct platform_device *pdev, int source);
68 int timer_ip_version;
69 u32 needs_manual_reset:1;
70};
71
65struct omap_dm_timer *omap_dm_timer_request(void); 72struct omap_dm_timer *omap_dm_timer_request(void);
66struct omap_dm_timer *omap_dm_timer_request_specific(int timer_id); 73struct omap_dm_timer *omap_dm_timer_request_specific(int timer_id);
67void omap_dm_timer_free(struct omap_dm_timer *timer); 74void omap_dm_timer_free(struct omap_dm_timer *timer);
@@ -228,6 +235,7 @@ struct omap_dm_timer {
228 unsigned reserved:1; 235 unsigned reserved:1;
229 unsigned enabled:1; 236 unsigned enabled:1;
230 unsigned posted:1; 237 unsigned posted:1;
238 struct platform_device *pdev;
231}; 239};
232 240
233extern u32 sys_timer_reserved; 241extern u32 sys_timer_reserved;