summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2020-03-12 07:22:08 +0300
committerThierry Reding <thierry.reding@gmail.com>2020-03-30 19:03:07 +0300
commit867beb60d131f7a5cde88ba375338285fdc6ddb8 (patch)
tree4d4f2a8f396989c859611fe915829a1f25e5bb49 /scripts/gdb/linux/utils.py
parent348fb6f7fb4cc7ebc35d1cde6e5c2ada64b683c6 (diff)
downloadlinux-867beb60d131f7a5cde88ba375338285fdc6ddb8.tar.xz
pwm: omap-dmtimer: Fix PWM enabling sequence
To configure DM timer in PWM mode the following needs to be set in OMAP_TIMER_CTRL_REG using set_pwm callback: - Set toggle mode on PORTIMERPWM output pin - Set trigger on overflow and match on PORTIMERPWM output pin. - Set auto reload This is a one time configuration and needs to be set before the start of the DM timer. But the current driver tries to set the same configuration for every period/duty cycle update, which is not needed. So move the PWM setup before enabling timer and do not update it in pwm_omap_dmtimer_config(). Tested-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions