OSDN Git Service

clocksource/drivers/timer-ti-dm: Add support to get pwm current status
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 5 Mar 2020 08:27:14 +0000 (13:57 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 16 Mar 2020 11:40:42 +0000 (12:40 +0100)
commit92fd86864ec4ac089de47f0f1f4c47418b343448
tree70a100e6612405f9d6ef62770c2c46a465e3620b
parentaff7665dc64b60c1f93d6e52fde297ae6b8999ae
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
drivers/clocksource/timer-ti-dm.c
include/linux/platform_data/dmtimer-omap.h