watchdog: bcm2835: Support setting reboot partition
authorNoralf Trønnes <noralf@tronnes.org>
Fri, 7 Oct 2016 14:50:59 +0000 (16:50 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:44:50 +0000 (15:44 +0100)
commitcec685d1c2289cf269e9119d630d9928ff5c8f3a
treee41bf981692d7147d8bb07985ce740c31cb65c85
parent3e8028aa0b1a97842722472bb39c5352d7dba1f8
watchdog: bcm2835: Support setting reboot partition

The Raspberry Pi firmware looks at the RSTS register to know which
partition to boot from. The reboot syscall command
LINUX_REBOOT_CMD_RESTART2 supports passing in a string argument.

Add support for passing in a partition number 0..63 to boot from.
Partition 63 is a special partiton indicating halt.
If the partition doesn't exist, the firmware falls back to partition 0.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
drivers/watchdog/bcm2835_wdt.c