u-boot-brain/drivers/clk/renesas
Marek Vasut 45b01b462f clk: renesas: Fix SDH clock divider decoding on Gen2
The gen2_clk_get_sdh_div() function is supposed to look up the
$val value read out of the SDCKCR register in the supplied table
and return the matching divider value. The current implementation
was matching the value from SDCKCR on the divider value in the
table, which is wrong. Fix this and rework the function a bit
to make it more readable.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2019-03-25 20:26:53 +01:00
..
clk-rcar-gen2.c clk: renesas: Fix SDH clock divider decoding on Gen2 2019-03-25 20:26:53 +01:00
clk-rcar-gen3.c clk: renesas: Allow reconfiguring SDHI clock on Gen3 2018-12-03 12:51:16 +01:00
Kconfig clk: rmobile: Drop def_bool per SoC 2019-02-25 16:07:41 +01:00
Makefile clk: renesas: Add R8A77990 E3 clock tables 2018-06-01 09:47:01 +02:00
r8a7790-cpg-mssr.c clk: renesas: Minor clean up of the R8A7790 clock driver 2018-04-13 23:41:44 +02:00
r8a7791-cpg-mssr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
r8a7792-cpg-mssr.c clk: renesas: Drop USB extal from the R8A7792 clock driver 2018-05-02 10:49:58 +02:00
r8a7794-cpg-mssr.c clk: renesas: Minor clean up of the R8A7794 clock driver 2018-04-21 18:00:00 +02:00
r8a7795-cpg-mssr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
r8a7796-cpg-mssr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
r8a77970-cpg-mssr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
r8a77990-cpg-mssr.c clk: rmobile: Add R8A77990 RPC clock 2018-06-14 13:36:33 +02:00
r8a77995-cpg-mssr.c clk: rmobile: Add R8A77995 RPC clock 2018-06-14 13:36:33 +02:00
rcar-gen2-cpg.h clk: renesas: Add Gen2 clock core 2018-01-24 23:27:22 +01:00
rcar-gen3-cpg.h clk: renesas: Add PE clock handling 2018-06-01 09:42:13 +02:00
renesas-cpg-mssr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
renesas-cpg-mssr.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00