u-boot-brain/arch/arm/cpu/arm926ejs/mxs
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
..
clock.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
iomux.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mxs_init.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mxs.c arm: mxs: be more careful when enabling gpmi_clk 2020-01-07 10:26:57 +01:00
mxsimage-signed.cfg ARM: mxs: tools: Add support for boot progress display flag 2014-11-20 10:13:45 +01:00
mxsimage-spl.mx23.cfg ARM: mxs: support full SPL framework 2018-04-27 09:32:54 +02:00
mxsimage-spl.mx28.cfg ARM: mxs: support full SPL framework 2018-04-27 09:32:54 +02:00
mxsimage.mx23.cfg ARM: mxs: tools: Add support for boot progress display flag 2014-11-20 10:13:45 +01:00
mxsimage.mx28.cfg ARM: mxs: tools: Add support for boot progress display flag 2014-11-20 10:13:45 +01:00
spl_boot.c ARM: mxs: spl_boot.c: make early_delay more robust 2020-01-07 10:26:57 +01:00
spl_lradc_init.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl_mem_init.c ARM: mxs: let boards override entire dram parameter table 2018-06-18 16:24:57 +02:00
spl_power_init.c arm: mxs: Increase VDDD voltage to match specification 2019-11-03 17:04:16 +01:00
start.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer.c common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
u-boot-imx23.bd kbuild,mxs: use short logs for MXS images 2014-03-12 17:04:37 -04:00
u-boot-imx28.bd kbuild,mxs: use short logs for MXS images 2014-03-12 17:04:37 -04:00
u-boot-spl.lds linker: Modify linker scripts to be more generic 2019-01-26 22:55:53 -05:00