diff options
author | Tarun Kanti DebBarma <tarun.kanti@ti.com> | 2011-09-20 07:30:18 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-09-21 18:50:31 -0400 |
commit | c345c8b09d7a131f3571af55341038054a79efbd (patch) | |
tree | 8bd6653ef7da1276365258a2b11a54d5c0626a4e /arch/arm/plat-omap | |
parent | 97933d6ced601de013f17ad3f589e72cf2266bba (diff) |
ARM: 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.
In addition, capability attribute of each of the timers is added in
hwmod database.
Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Signed-off-by: Thara Gopinath <thara@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')
-rw-r--r-- | arch/arm/plat-omap/include/plat/dmtimer.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/include/plat/dmtimer.h b/arch/arm/plat-omap/include/plat/dmtimer.h index 1751751862da..9ed08df9d026 100644 --- a/arch/arm/plat-omap/include/plat/dmtimer.h +++ b/arch/arm/plat-omap/include/plat/dmtimer.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/plat-omap/include/mach/dmtimer.h | 2 | * arch/arm/plat-omap/include/plat/dmtimer.h |
3 | * | 3 | * |
4 | * OMAP Dual-Mode Timers | 4 | * OMAP Dual-Mode Timers |
5 | * | 5 | * |
@@ -60,6 +60,16 @@ | |||
60 | * in OMAP4 can be distinguished. | 60 | * in OMAP4 can be distinguished. |
61 | */ | 61 | */ |
62 | #define OMAP_TIMER_IP_VERSION_1 0x1 | 62 | #define OMAP_TIMER_IP_VERSION_1 0x1 |
63 | |||
64 | /* timer capabilities used in hwmod database */ | ||
65 | #define OMAP_TIMER_SECURE 0x80000000 | ||
66 | #define OMAP_TIMER_ALWON 0x40000000 | ||
67 | #define OMAP_TIMER_HAS_PWM 0x20000000 | ||
68 | |||
69 | struct omap_timer_capability_dev_attr { | ||
70 | u32 timer_capability; | ||
71 | }; | ||
72 | |||
63 | struct omap_dm_timer; | 73 | struct omap_dm_timer; |
64 | struct clk; | 74 | struct clk; |
65 | 75 | ||