]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: theadorable: Add test for ctrl-c in PCIe PEX switch test
authorStefan Roese <sr@denx.de>
Mon, 11 Mar 2019 12:56:14 +0000 (13:56 +0100)
committerStefan Roese <sr@denx.de>
Fri, 12 Apr 2019 05:04:18 +0000 (07:04 +0200)
commit1d3679ee588efaff9d613aa3b861c198c7b35c9b
tree53801ba3c3e6ba4d6350732744c0a61cdd779de8
parent3e9aecc22777a673fe340946e5fa340fa76b5b99
arm: mvebu: theadorable: Add test for ctrl-c in PCIe PEX switch test

The check for the missing PEX switch can lead to an infinite loop, when
the PCIe device is not found. It is helpful to enable the user to break
out of this boot-loop, to enable booting to the prompt for test cases.
This patch adds a 3 second delay in the error case before rebooting.
The user can press Ctrl-C in this time to abort the boot-loop.

This patch also calls bootcount_inc() before rebooting in the error
case. This is needed to increment the bootcounter, since this function
is called earlier than the main bootcounter increment. Otherwise the
bootcounter will not be incremented in the error case at all.

Signed-off-by: Stefan Roese <sr@denx.de>
board/theadorable/theadorable.c