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: NVasily Khoruzhick <anarsoul@gmail.com> Tested-by: NVagrant Cascadian <vagrant@debian.org> Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: NJagan Teki <jagan@openedev.com>
Showing
想要评论请 注册 或 登录