diff options
author | Hans de Goede | 2020-09-03 13:23:31 +0200 |
---|---|---|
committer | Hans de Goede | 2020-09-06 15:38:04 +0200 |
commit | 6fdefe60898ad4506456d8117c7f81cbc5d13468 (patch) | |
tree | d95f36d66f98cea54d837f48c9c718f47ad07562 /drivers/ata | |
parent | 6158231a84224ed0d826bbf62c992ce9c73101c1 (diff) |
pwm: crc: Enable/disable PWM output on enable/disable
The pwm-crc code is using 2 different enable bits:
1. bit 7 of the PWM0_CLK_DIV (PWM_OUTPUT_ENABLE)
2. bit 0 of the BACKLIGHT_EN register
So far we've kept the PWM_OUTPUT_ENABLE bit set when disabling the PWM,
this commit makes crc_pwm_disable() clear it on disable and makes
crc_pwm_enable() set it again on re-enable.
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200903112337.4113-12-hdegoede@redhat.com
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions