[U-Boot] [U-Boot, RESENT, v2, 4/4] rockchip: clk: remove RATE_TO_DIV

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Thu Jul 27 08:21:53 UTC 2017


> Use DIV_ROUND_UP instead RATE_TO_DIV for all Rockchip SoC
> clock driver.
> Add or fix the div-field overflow check at the same time.
> 
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> ---
> 
> Changes in v2:
> - add overflow check for div-field
> 
>  drivers/clk/rockchip/clk_rk3036.c |  3 ++-
>  drivers/clk/rockchip/clk_rk3188.c | 12 +++++-------
>  drivers/clk/rockchip/clk_rk322x.c |  6 ++----
>  drivers/clk/rockchip/clk_rk3288.c |  7 +++----
>  drivers/clk/rockchip/clk_rk3368.c |  8 +++-----
>  drivers/clk/rockchip/clk_rk3399.c | 11 ++++++-----
>  drivers/clk/rockchip/clk_rv1108.c |  3 ---
>  7 files changed, 21 insertions(+), 29 deletions(-)
> 

Reviewed-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>


More information about the U-Boot mailing list