OSDN Git Service

powerpc/boot: Parse chosen/cmdline-timeout parameter
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Tue, 28 Oct 2014 11:19:00 +0000 (12:19 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 9 Nov 2014 22:59:30 +0000 (09:59 +1100)
commit4b4b13d5fec8a82ed2780c487e49cfc4321a8c14
treed021c3f9a715abfbc2b51100c7f32e5e61783d60
parent90029640fd5963343fb862d419db161bc0424120
powerpc/boot: Parse chosen/cmdline-timeout parameter

On some platforms a 5 second timeout during boot might be quite long, so
make it configurable. Run the loop at least once to let the user stop
the boot by holding a key pressed. If the timeout is set to 0, don't
wait for input, which can be used as a workaround if the boot hangs on
random data coming in on the serial port.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
[mpe: Changelog wording & whitespace]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/main.c
arch/powerpc/boot/ops.h
arch/powerpc/boot/serial.c