]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: bcm2835: Fix poweroff behaviour
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 17 Jun 2015 14:04:04 +0000 (16:04 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 28 Sep 2015 08:56:05 +0000 (10:56 +0200)
commit60cf113a119d809e4b177b1278b29bf9c0a13eff
tree449a20ba7c6ee5e1097026aa83725752230cbfa8
parentd78e9042e9b9c7c3e8b0b7acc5ce4f748906171a
watchdog: bcm2835: Fix poweroff behaviour

Currently poweroff/halt results in a reboot on the Raspberry Pi.
The firmware uses the RSTS register to know which partiton to
boot from. The partiton value is spread into bits
0, 2, 4, 6, 8, 10. Partiton 63 is a special partition used by
the firmware to indicate halt.

The firmware made this change in 19 Aug 2013 and was matched
by the downstream commit:
Changes for new NOOBS multi partition booting from gsh

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/bcm2835_wdt.c