]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: meson: add sm command to retrieve the reboot reason
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 6 Aug 2019 15:28:36 +0000 (17:28 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 12 Aug 2019 08:02:30 +0000 (10:02 +0200)
commitb1dd7debeaf5b55f0d6091406ea4e767e4fdaaac
tree0d8532edf96c9cd03ba934fc0d377af1f823bab5
parent559e6256f855e61f987598a18ed4f2e20bc530e7
arm: meson: add sm command to retrieve the reboot reason

The Secure Monitor offers multiple services, like returning the
SoC unique serial number, and can provide the "reboot reason" as
set by the previous booted system.

This extends the Amlogic specific "sm" cmd with a "reboot_reason" subcommand
to print or set a specified environment variable with the reboot reason in
human readable format.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
arch/arm/include/asm/arch-meson/sm.h
arch/arm/mach-meson/sm.c