clk: at91: utmi: add timeout for utmi lock
authorEugen Hristev <eugen.hristev@microchip.com>
Fri, 3 Aug 2018 09:10:49 +0000 (12:10 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 13 Aug 2018 18:03:57 +0000 (14:03 -0400)
commite9cd3d70244a4a262c6b1935df87c85d25df5344
treed16c36696f4b17b418ead404bd8c5358f9087b15
parent1246040cdaa5c9a1d7216777b06c11c441a187ea
clk: at91: utmi: add timeout for utmi lock

In case the slow clock is not properly configured, the UTMI clock
cannot lock the PLL, because UPLLCOUNT will "wait X slow clock cycles".
In this case U-boot will loop indefinitely.
Added a timeout in this case, to start U-boot even if UTMI clock is
not enabled, so the user can use different media if needed, or investigate.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
drivers/clk/at91/clk-utmi.c