[U-Boot] [PATCH 42/45] sysreset: Add a way to find the last reset

sjg at google.com sjg at google.com
Tue Oct 9 23:54:46 UTC 2018


We have a method to return the last reset as a string for humans, but not
a method that allows it to be used programmatically. Add a new method that
returns the last reset as an enum.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/sysreset/sysreset-uclass.c  | 30 +++++++++++++++++++++++++++++
 drivers/sysreset/sysreset_sandbox.c | 12 ++++++++++++
 include/sysreset.h                  | 30 +++++++++++++++++++++++++++++
 test/dm/sysreset.c                  | 19 ++++++++++++++++++
 4 files changed, 91 insertions(+)

Applied to u-boot-dm


More information about the U-Boot mailing list