aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2020-03-05 13:57:15 +0530
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-03-16 12:40:51 +0100
commit02e6d546e3bdc1a8a764343cd1ba354da07e8623 (patch)
tree5bd83715ca2f9e85ed2a132932ebf13317630481 /include/linux/platform_data
parentclocksource/drivers/timer-ti-dm: Add support to get pwm current status (diff)
downloadlinux-dev-02e6d546e3bdc1a8a764343cd1ba354da07e8623.tar.xz
linux-dev-02e6d546e3bdc1a8a764343cd1ba354da07e8623.zip
clocksource/drivers/timer-ti-dm: Enable autoreload in set_pwm
dm timer ops set_load() api allows to configure the load value and to set the auto reload feature. But auto reload feature is independent of load value and should be part of configuring pwm. This way pwm can be disabled by disabling auto reload feature using set_pwm() so that the current pwm cycle will be completed. Else pwm disabling causes the cycle to be stopped abruptly. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200305082715.15861-7-lokeshvutla@ti.com
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/dmtimer-omap.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/platform_data/dmtimer-omap.h b/include/linux/platform_data/dmtimer-omap.h
index 3173b7b6ff6f..95d852aef130 100644
--- a/include/linux/platform_data/dmtimer-omap.h
+++ b/include/linux/platform_data/dmtimer-omap.h
@@ -30,12 +30,11 @@ struct omap_dm_timer_ops {
int (*stop)(struct omap_dm_timer *timer);
int (*set_source)(struct omap_dm_timer *timer, int source);
- int (*set_load)(struct omap_dm_timer *timer, int autoreload,
- unsigned int value);
+ int (*set_load)(struct omap_dm_timer *timer, unsigned int value);
int (*set_match)(struct omap_dm_timer *timer, int enable,
unsigned int match);
int (*set_pwm)(struct omap_dm_timer *timer, int def_on,
- int toggle, int trigger);
+ int toggle, int trigger, int autoreload);
int (*get_pwm_status)(struct omap_dm_timer *timer);
int (*set_prescaler)(struct omap_dm_timer *timer, int prescaler);