summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/dmtimer-omap.h
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2020-03-05 13:57:14 +0530
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-03-16 12:40:42 +0100
commit92fd86864ec4ac089de47f0f1f4c47418b343448 (patch)
tree70a100e6612405f9d6ef62770c2c46a465e3620b /include/linux/platform_data/dmtimer-omap.h
parentaff7665dc64b60c1f93d6e52fde297ae6b8999ae (diff)
clocksource/drivers/timer-ti-dm: Add support to get pwm current status
omap_dm_timer_ops provide support to configure the pwm but there is no support to get the current status. For configuring pwm it is advised to check the current hw status instead of relying on pwm framework. So implement a new timer ops to get the current status of pwm. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Acked-by: Tony Lindgen <tony@atomide.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200305082715.15861-6-lokeshvutla@ti.com
Diffstat (limited to 'include/linux/platform_data/dmtimer-omap.h')
-rw-r--r--include/linux/platform_data/dmtimer-omap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/dmtimer-omap.h b/include/linux/platform_data/dmtimer-omap.h
index bdaaf537604a..3173b7b6ff6f 100644
--- a/include/linux/platform_data/dmtimer-omap.h
+++ b/include/linux/platform_data/dmtimer-omap.h
@@ -36,6 +36,7 @@ struct omap_dm_timer_ops {
unsigned int match);
int (*set_pwm)(struct omap_dm_timer *timer, int def_on,
int toggle, int trigger);
+ int (*get_pwm_status)(struct omap_dm_timer *timer);
int (*set_prescaler)(struct omap_dm_timer *timer, int prescaler);
unsigned int (*read_counter)(struct omap_dm_timer *timer);