]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit4e63383113c5564a522f44f8526f9762fc4a036c
treed16c36696f4b17b418ead404bd8c5358f9087b15
parent9abc027ebb676c567e75e9e2784964276d0de2e2
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