u-boot/arch/arm/cpu/arm926ejs
Rasmus Villemoes b6e7ef4bf7 ARM: mxs: spl_boot.c: make early_delay more robust
It's true that booting normally doesn't take long enough for the
register to roll (which actually happens in a little over an hour, not
just a few seconds). However, the counter starts at power-on, and if
the board is held in reset to be booted over USB, one actually risks
hitting wrap-around during boot, which can both result in too short
delays (if the "st += delay" calculation makes st small) and
theoretically also unbound delays (if st ends up being UINT_MAX and
one just misses sampling digctl_microseconds at that point).

It doesn't take more code to DTRT, and once bitten, twice shy.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
2020-01-07 10:26:57 +01:00
..
armada100 common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
lpc32xx common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
mx25 Move strtomhz() to vsprintf.h 2019-12-02 18:23:09 -05:00
mx27 common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
mxs ARM: mxs: spl_boot.c: make early_delay more robust 2020-01-07 10:26:57 +01:00
orion5x linker: Modify linker scripts to be more generic 2019-01-26 22:55:53 -05:00
spear common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
cache.c common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
cpu.c common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
Makefile arm: mxs: Correct CONFIG_SPL_NO_CPU_SUPPORT option 2019-10-08 13:57:45 +08:00
start.S CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00