[PATCH linux dev-4.13 3/3] ARM: dts: aspeed: witherspoon: set alternate boot
Joel Stanley
joel at jms.id.au
Tue Mar 13 14:41:36 AEDT 2018
On Sat, Mar 10, 2018 at 8:33 AM, Eddie James <eajames at linux.vnet.ibm.com> wrote:
> Set watchdog 2 to boot from the alternate flash chip when the watchdog
> timer expires and the system is reset. This enables "brick protection."
>
> Signed-off-by: Eddie James <eajames at linux.vnet.ibm.com>
> ---
> arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> index 5f8dbffa..e8e4d30 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> @@ -633,6 +633,10 @@
> pinctrl-0 = <&pinctrl_wdtrst1_default>;
> };
>
> +&wdt2 {
> + aspeed,alt-boot;
When you enable this, how does the machine tell the difference between
a normal reboot (which uses the watchdog) and a real expired watchdog?
Cheers,
Joel
More information about the openbmc
mailing list