]> 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)
commitb637ab3d60ea7ae6ea1de0a53c2eda64b5475551
tree449a20ba7c6ee5e1097026aa83725752230cbfa8
parent587b6c07f5028f87031421fa9645c855eef5e13b
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