]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Increase delay after changing baudrate in ARM code
authorPali Rohár <pali@kernel.org>
Wed, 27 Oct 2021 18:57:00 +0000 (20:57 +0200)
committerStefan Roese <sr@denx.de>
Wed, 3 Nov 2021 05:45:27 +0000 (06:45 +0100)
commit56452295c315397255d05e91940976f68c247d4a
tree0446e4fb8d2c3479237b0adfbb7b769406006745
parentcab817d260341244f011f7a0c490df51b33c05aa
tools: kwboot: Increase delay after changing baudrate in ARM code

Increase loop cycles from 600000 to 2998272, which should increase delay
from 1ms to about 5ms on 1200 MHz CPU.

The Number 2998272 was chosen as the nearest value around 3000000 which can
be encoded into one ARM mov instruction. It avoids usage of movt instruction
which is not supported by ARMv5te cores.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c