diff options
author | Patrice Chotard <patrice.chotard@st.com> | 2017-07-18 11:57:05 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2017-07-28 23:34:06 +0200 |
commit | 9bd5cdf6b62b249dc48a00a23b44dc7be547f9f9 (patch) | |
tree | 90495c9ea494b341fe3f51ddd889843696379a1f /include/reset.h | |
parent | f56db163adf9f922020436e5a3f85ffbdbaed04f (diff) | |
download | u-boot-9bd5cdf6b62b249dc48a00a23b44dc7be547f9f9.tar.gz |
reset: add reset_request()
This is needed in error path to assert previously deasserted
reset by using a saved reset_ctl reference.
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/reset.h')
-rw-r--r-- | include/reset.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/reset.h b/include/reset.h index f45fcf88c4..4f2e35f38f 100644 --- a/include/reset.h +++ b/include/reset.h @@ -100,6 +100,15 @@ int reset_get_by_name(struct udevice *dev, const char *name, struct reset_ctl *reset_ctl); /** + * reset_request - Request a reset signal. + * + * @reset_ctl: A reset control struct. + * + * @return 0 if OK, or a negative error code. + */ +int reset_request(struct reset_ctl *reset_ctl); + +/** * reset_free - Free a previously requested reset signal. * * @reset_ctl: A reset control struct that was previously successfully |