]> git.sur5r.net Git - u-boot/commit
clk: at91: clk-generated: select absolute closest rate
authorLudovic Desroches <ludovic.desroches@microchip.com>
Fri, 17 Nov 2017 06:50:21 +0000 (14:50 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 30 Nov 2017 03:30:50 +0000 (22:30 -0500)
commiteb1ed2b19befecdfeddb394e6174bb2198f2a49b
tree58560355cd9e0e35c69b1fb7f3f1d0df7d9361f9
parent9e0eb01239a3d6d191ed62e9261232f792c42cdf
clk: at91: clk-generated: select absolute closest rate

To get the same behavior as the Linux driver, instead of selecting
the closest inferior rate, select the closest inferior or superior
rate

Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
drivers/clk/at91/clk-generated.c