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 <s...@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
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to