diff options
author | Andreas Dannenberg <dannenberg@ti.com> | 2018-08-27 13:27:39 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-09-11 15:32:55 +0300 |
commit | e7012e6e1f9e1c16f093d71bd53b34a6467f07bc (patch) | |
tree | 3ae6f0557351476502ee371cbc4a82c81465e1db /include/reset-uclass.h | |
parent | aec99c9776d33a1c2218f975a02cb1068cdcf579 (diff) | |
download | u-boot-e7012e6e1f9e1c16f093d71bd53b34a6467f07bc.tar.xz |
dm: reset: Update uclass to allow querying reset status
Add a reset operations function pointer to support querying the current
status of a reset control.
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'include/reset-uclass.h')
-rw-r--r-- | include/reset-uclass.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/reset-uclass.h b/include/reset-uclass.h index c17d738b31..7b5cc3cb3b 100644 --- a/include/reset-uclass.h +++ b/include/reset-uclass.h @@ -76,6 +76,14 @@ struct reset_ops { * @return 0 if OK, or a negative error code. */ int (*rst_deassert)(struct reset_ctl *reset_ctl); + /** + * rst_status - Check reset signal status. + * + * @reset_ctl: The reset signal to check. + * @return 0 if deasserted, positive if asserted, or a negative + * error code. + */ + int (*rst_status)(struct reset_ctl *reset_ctl); }; #endif |