u-boot/arch/arm/cpu
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
..
arm11 common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
arm720t SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arm920t common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
arm926ejs ARM: mxs: spl_boot.c: make early_delay more robust 2020-01-07 10:26:57 +01:00
arm946es common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
arm1136 Convert to use fsl_esdhc_imx for i.MX platforms 2019-06-23 14:18:34 +08:00
arm1176 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
armv7 sunxi: psci: avoid error address-of-packed-member 2019-12-18 20:13:34 +05:30
armv7m armv7m: cache: add invalidate_icache_all() stub 2019-12-03 08:43:24 -05:00
armv8 Fix typo in macros, "FIRMEWARE" -> "FIRMWARE" 2019-12-05 10:28:39 -05:00
pxa common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
sa1100 common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u-boot-spl.lds spl: fix linker size check off-by-one errors 2019-05-05 08:48:50 -04:00
u-boot.lds ARM: Specify aligned address for secure section instead of using attributes 2018-09-07 09:11:42 -04:00