]> git.dujemihanovic.xyz Git - u-boot.git/commit
pwm: rk_pwm: Make PWM driver to support all Rockchip Socs
authorDavid Wu <david.wu@rock-chips.com>
Tue, 3 Dec 2019 09:49:53 +0000 (17:49 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 5 Dec 2019 16:06:23 +0000 (00:06 +0800)
commit4ee6d51c5ada760f82eb3d771bc2909130984e98
tree401a856ee6fd9b763a33c40b1067ca82c8b76488
parentaebd9eddb3486eceaad98f186986895025794354
pwm: rk_pwm: Make PWM driver to support all Rockchip Socs

This PWM driver can be used to support pwm functions
for on all Rockchip Socs.

The previous chips than RK3288 did not support polarity,
and register layout was different from the RK3288 PWM.

The RK3288 keep the current functions.

RK3328 and the chips after it, which can support hardware lock,
configure duty, period and polarity at next same period, to
prevent the intermediate temporary state.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/include/asm/arch-rockchip/pwm.h
drivers/pwm/rk_pwm.c