[U-Boot] [PATCH] Tegra: clk: always use find_best_divider() for periph clocks

Simon Glass sjg at chromium.org
Sat May 11 05:05:54 CEST 2013


On Fri, May 10, 2013 at 8:56 PM, Allen Martin <amartin at nvidia.com> wrote:
> When adjusting peripheral clocks always use find_best_divider()
> instead of clk_get_divider() even when a secondary divider is not
> available.  In the case where is requested clock is too slow to be
> derived from the parent clock this allows a best effort to get close
> to the requested clock.
>
> This comes up for commands like "sf" where the user can pass a clock
> speed on the command line or "sspi" where the clock is hardcoded to
> 1MHz, but the Tegra114 SPI controller can't go that low.
>
> Signed-off-by: Allen Martin <amartin at nvidia.com>

Seems right to me,

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list