summaryrefslogtreecommitdiff
path: root/include/sysreset.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-09-18 20:42:37 -0400
committerTom Rini <trini@konsulko.com>2018-09-18 20:42:37 -0400
commit4e710ebb4463c8e031eb269c012fbadb2479608b (patch)
treef334518436bc0262b483308026fbba413a45493e /include/sysreset.h
parentb57f1895b669e3fbdca486e7c40dfea00f22bb93 (diff)
parent75629a25087cd9897305375421abe2248bc40e72 (diff)
Merge git://git.denx.de/u-boot-dm
- MPC83xx device tree additions (CPU and RAM) - Fix sandbox build error - Sync bitrev with Linux - Various ofnode/DT improvements
Diffstat (limited to 'include/sysreset.h')
-rw-r--r--include/sysreset.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/sysreset.h b/include/sysreset.h
index 81318bdbf5d..a5c0b74a473 100644
--- a/include/sysreset.h
+++ b/include/sysreset.h
@@ -28,6 +28,14 @@ struct sysreset_ops {
* (in which case this method will not actually return)
*/
int (*request)(struct udevice *dev, enum sysreset_t type);
+ /**
+ * get_status() - get printable reset status information
+ *
+ * @buf: Buffer to receive the textual reset information
+ * @size: Size of the passed buffer
+ * @return 0 if OK, -ve on error
+ */
+ int (*get_status)(struct udevice *dev, char *buf, int size);
};
#define sysreset_get_ops(dev) ((struct sysreset_ops *)(dev)->driver->ops)
@@ -41,6 +49,15 @@ struct sysreset_ops {
int sysreset_request(struct udevice *dev, enum sysreset_t type);
/**
+ * get_status() - get printable reset status information
+ *
+ * @buf: Buffer to receive the textual reset information
+ * @size: Size of the passed buffer
+ * @return 0 if OK, -ve on error
+ */
+int sysreset_get_status(struct udevice *dev, char *buf, int size);
+
+/**
* sysreset_walk() - cause a system reset
*
* This works through the available sysreset devices until it finds one that can