]> git.ipfire.org Git - thirdparty/u-boot.git/commit
sysreset: Add get_status method
authorMario Six <mario.six@gdsys.cc>
Mon, 6 Aug 2018 08:23:32 +0000 (10:23 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Sep 2018 06:01:18 +0000 (00:01 -0600)
commit245f5cda69a1332585c2a22a48420f4ca1ab67ad
tree6c56d4923d5ec2845ff6d3704321e85a08b46d40
parent08f5b0b23a62ac7d1b705241f16df1e3a1cb8ae1
sysreset: Add get_status method

It's useful to have the reset status of the SoC printed out during reset
(e.g. to learn whether the reset was caused by software or a watchdog).

As a first step to implement this, add a get_status method to the
sysreset class, which enables the caller to get printable information
about the reset status (akin to get_desc in the CPU uclass).

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mario Six <mario.six@gdsys.cc>
drivers/sysreset/sysreset-uclass.c
include/sysreset.h