diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-29 12:13:41 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-08-01 11:58:39 +0200 |
commit | e20a6e44796a9389464b766b18942e6121f60bf0 (patch) | |
tree | 217bf9b4870013cb6198b5dda97c77d1436de497 /drivers | |
parent | a9e5aa79729b78f6ed0ce7bc0e571c776c46e073 (diff) | |
download | u-boot-e20a6e44796a9389464b766b18942e6121f60bf0.tar.gz |
dm: sysreset: wait after reset message
In our Python tests we expect to see the word "resetting". It may be
truncated if we reset before the serial console buffer is transferred.
Wait for 100 ms between the "resetting ..." message and the actual reset
like we do when powering off.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/sysreset/sysreset-uclass.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c index 995240f0cb..3f5414ed1f 100644 --- a/drivers/sysreset/sysreset-uclass.c +++ b/drivers/sysreset/sysreset-uclass.c @@ -117,6 +117,7 @@ void reset_cpu(ulong addr) int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { printf("resetting ...\n"); + mdelay(100); sysreset_walk_halt(SYSRESET_COLD); |