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

2018-10-09 Thread sjg
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 --- drivers/sysreset/sysreset-uclass.c | 30 + drivers/

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

2018-10-01 Thread Simon Glass
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 --- drivers/sysreset/sysreset-uclass.c | 30 + drivers/