watchdog: bcm2835: Support setting reboot partition
authorNoralf Trønnes <noralf@tronnes.org>
Fri, 7 Oct 2016 14:50:59 +0000 (16:50 +0200)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:31:32 +0000 (11:31 +0000)
commit0a47d7cda0579204385a7dc57297254b449b9005
tree91d9e44fcd2c72480dcd77794b26dbb622661c91
parent0b200289f72e063e105b6fc90de032eaafa4f00d
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