commit | 50f3feb57f97ff0221531a0e9e2c8f8902124157 | [log] [tgz] |
---|---|---|
author | Vasily Khoruzhick <anarsoul@gmail.com> | Tue Oct 16 21:56:35 2018 -0700 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Wed Oct 24 21:57:16 2018 +0530 |
tree | 333e1b626d6becaad36126be9ea68963ccf54742 | |
parent | f83a857937ec3e2edee5afc4f974b6c2aa06c337 [diff] |
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>