Re: [PATCH 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-12 Thread Guenter Roeck
On 06/09/2015 03:21 AM, Noralf Trønnes wrote: This adds a new poweroff function to the watchdog driver for the Raspberry Pi. Currently poweroff/halt results in a reboot. The Raspberry Pi firmware uses the RSTS register to know which partiton to boot from. The partiton value is spread into bits

Re: [PATCH 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-12 Thread Guenter Roeck
On 06/12/2015 04:26 AM, Stefan Wahren wrote: Hi Noralf, Am 09.06.2015 um 12:21 schrieb Noralf Trønnes: This adds a new poweroff function to the watchdog driver for the Raspberry Pi. Currently poweroff/halt results in a reboot. [...] +static void rpi_power_off(void) +{ +struct device_node

Re: [PATCH 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-12 Thread Stefan Wahren
Hi Noralf, Am 09.06.2015 um 12:21 schrieb Noralf Trønnes: This adds a new poweroff function to the watchdog driver for the Raspberry Pi. Currently poweroff/halt results in a reboot. [...] +static void rpi_power_off(void) +{ + struct device_node *np = +

[PATCH 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-09 Thread Noralf Trønnes
This adds a new poweroff function to the watchdog driver for the Raspberry Pi. Currently poweroff/halt results in a reboot. The Raspberry Pi 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