ARM: OMAP: Add flag to indicate if a timer needs a manual reset
For OMAP1 devices, it is necessary to perform a manual reset of the timer. Currently, this is indicating by setting the "needs_manual_reset" variable in the platform data. Instead of using an extra variable to indicate this add a new timer capabilities flag to indicate this and remove the "needs_manual_reset" member from the platform data. Signed-off-by: Jon Hunter <jon-hunter@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:

committed by
Tony Lindgren

parent
0b30ec1cb7
commit
6615975bc5
@@ -59,6 +59,7 @@
|
||||
#define OMAP_TIMER_SECURE 0x80000000
|
||||
#define OMAP_TIMER_ALWON 0x40000000
|
||||
#define OMAP_TIMER_HAS_PWM 0x20000000
|
||||
#define OMAP_TIMER_NEEDS_RESET 0x10000000
|
||||
|
||||
struct omap_timer_capability_dev_attr {
|
||||
u32 timer_capability;
|
||||
@@ -90,7 +91,6 @@ struct timer_regs {
|
||||
|
||||
struct dmtimer_platform_data {
|
||||
int (*set_timer_src)(struct platform_device *pdev, int source);
|
||||
u32 needs_manual_reset:1;
|
||||
u32 timer_capability;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user