On Wed, 08 Jul 2026 10:38:10 +0200, Bastien Curutchet wrote:
> readl_relaxed_poll_timeout() relies on timers. On the beaglebone black,
> the timer used by readl_relaxed_poll_timeout() depends on this clock
> driver. So we have a sort of circular dependency [enable_clock ->
> timer_init -> enable_clock -> timer_init]. It leads to a
> division-per-zero during the second timer_init() and the beaglebone
> fails to boot with following message:
> | CPU : AM335X-GP rev 2.1
> | Model: TI AM335x BeagleBone Black
> | DRAM: 512 MiB
> | ### ERROR ### Please RESET the board ###
>
> [...]
Applied to u-boot/main, thanks!
[1/1] clk: ti: Use CPU ticks to count timeout
commit: d23b9d4f6ac76223d1354c7241790fb1b6d21fa5
--
Tom