]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: pwm: add mask for config setting
authorKever Yang <kever.yang@rock-chips.com>
Wed, 19 Jul 2017 11:54:23 +0000 (19:54 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Thu, 27 Jul 2017 12:59:01 +0000 (14:59 +0200)
commit06f4e36baf7833c2fa40af34b240e4132898689b
tree7744769b661b85832623ac794c093f4ea39f2ae1
parent3030c951f19bf69fd12fe700d33c4be3ad2ee734
rockchip: pwm: add mask for config setting

Use mask to clear old setting before direct set the new config,
or else there it will mess up the config when it's not the same
with default value.

Fixes: 3851059 rockchip: Setup default PWM flags
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/include/asm/arch-rockchip/pwm.h
drivers/pwm/rk_pwm.c