watchdog: bcm2835: Support setting reboot partition
authorNoralf Trønnes <noralf@tronnes.org>
Fri, 7 Oct 2016 14:50:59 +0000 (16:50 +0200)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:12:46 +0000 (19:12 +0000)
commit43593217d64faf9ba60b6e0e0aaf6bae5e0431b8
tree75f9d803f1ed8f6e8473a7798d9bcb8a3e17439f
parent9ce3507f84b57502b43be56d6cf472570402de8c
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