]> git.baikalelectronics.ru Git - uboot.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)
commitcf420c0a805a8185c8942bf5baea87707f98d8ce
tree7744769b661b85832623ac794c093f4ea39f2ae1
parentfda6e444e770af4f8e18cde7471133d94a1c5b85
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: 460d2e4 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