diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2015-11-18 13:25:18 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2015-12-16 16:52:09 +0100 |
commit | 37670676a122a38e72ecd9dac0feff2a3dac967f (patch) | |
tree | 17902c0f618967159895e75b2d3b3b609f30a5ac /sound/hda | |
parent | 6f90a00c6667dce5651341f0629443cf7951b235 (diff) | |
download | op-kernel-dev-37670676a122a38e72ecd9dac0feff2a3dac967f.zip op-kernel-dev-37670676a122a38e72ecd9dac0feff2a3dac967f.tar.gz |
pwm: lpss: Rework the sequence of programming PWM_SW_UPDATE
Setting of PWM_SW_UPDATE is bit different in Intel Broxton compared to the
previous generation SoCs. Previously it was OK to set the bit many times
(from userspace via sysfs for example) before the PWM is actually enabled.
Starting from Intel Broxton it seems that we must set PWM_SW_UPDATE only
once before the PWM is enabled. Otherwise it is possible that the PWM does
not start properly.
Change the sequence of how PWM_SW_UPDATE is programmed so that we only set
it in pwm_lpss_config() when the PWM is already enabled. The initial
setting of PWM_SW_UPDATE will be done when PWM gets enabled. This should
make the driver work with the previous generation Intel SoCs and Broxton.
Add also small delay after the bit is set to let the hardware propagate it
properly.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'sound/hda')
0 files changed, 0 insertions, 0 deletions