diff options
author | 2020-03-12 09:52:08 +0530 | |
---|---|---|
committer | 2020-03-30 18:03:07 +0200 | |
commit | 867beb60d131f7a5cde88ba375338285fdc6ddb8 (patch) | |
tree | 4d4f2a8f396989c859611fe915829a1f25e5bb49 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | pwm: omap-dmtimer: Update description for PWM OMAP DM timer (diff) | |
download | linux-dev-867beb60d131f7a5cde88ba375338285fdc6ddb8.tar.xz linux-dev-867beb60d131f7a5cde88ba375338285fdc6ddb8.zip |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions