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>
Mon, 20 Feb 2017 12:17:44 +0000 (12:17 +0000)
commitac7f6afb785fceaf2bdf340895682d2a552b6cbf
treecc2daaf089722aceeee44d0297db3fffa71d2b29
parent7df42d37cc8c93f56343c52a72ab7fe20a4bf4de
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