arm: socfpga: execute cold reboot by default
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Fri, 3 May 2019 09:15:07 +0000 (11:15 +0200)
committerDinh Nguyen <dinguyen@kernel.org>
Fri, 22 Nov 2019 18:12:10 +0000 (12:12 -0600)
commit716864586c6261b079a4d5ebc02f19adc8e6aa38
treec2808e19398c8f94f574727369294ece1beae4b2
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
arm: socfpga: execute cold reboot by default

This changes system reboot for socfpga to issue a cold reboot by
default instead of a warm reboot.

Warm reboot can still be used by setting reboot_mode to
REBOOT_WARM (e.g. via kernel command line 'reboot='), but this
patch ensures cold reboot is issued for both REBOOT_COLD and
REBOOT_HARD.

Also, cold reboot is more fail safe than warm reboot has some
issues at least fo CSEL=0 and BSEL=qspi, where the boot rom does
not set the qspi clock to a valid range.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/mach-socfpga/socfpga.c