]> git.dujemihanovic.xyz Git - u-boot.git/commit
pwm: sunxi: choose best prescaler to improve PWM resolution
authorVasily Khoruzhick <anarsoul@gmail.com>
Wed, 17 Oct 2018 04:56:35 +0000 (21:56 -0700)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 24 Oct 2018 16:27:16 +0000 (21:57 +0530)
commitc33ba7ec8b9be0a6fe7a2bd47a36c991bf9189e1
tree333e1b626d6becaad36126be9ea68963ccf54742
parentce138cb4294b85975b0c3ac8cf9e15a181462c25
pwm: sunxi: choose best prescaler to improve PWM resolution

Choose best prescaler to improve PWM resolution. Without this change
driver chooses first prescaler that gives us period value within
range, but it could be not the best one.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Vagrant Cascadian <vagrant@debian.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/pwm/sunxi_pwm.c