]> git.dujemihanovic.xyz Git - u-boot.git/commit
power: regulator: pwm: support pwm polarity setting
authorKever Yang <kever.yang@rock-chips.com>
Mon, 24 Apr 2017 02:27:49 +0000 (10:27 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 10 May 2017 19:37:21 +0000 (13:37 -0600)
commit0b60111aa66f51d05473a375070ca72d073a6fd3
tree48068d473dd00ed00a70b4a68cc956a04f049a62
parenta66726838e9227ea8b9c6a1402d6ca89384c1b56
power: regulator: pwm: support pwm polarity setting

The latest kernel PWM drivers enable the polarity settings. When system
run from U-Boot to kerenl, if there are differences in polarity set or
duty cycle, the PMW will re-init:
  close -> set polarity and duty cycle -> enable the PWM.
The power supply controled by pwm regulator may have voltage shaking,
which lead to the system not stable.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/power/regulator/pwm_regulator.c
drivers/pwm/pwm-uclass.c
include/pwm.h