diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2019-03-20 15:32:38 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-23 17:57:24 -0400 |
commit | f5ed7481e7665d2d15037fc8eb118b0a79b24019 (patch) | |
tree | 1803abf3ddc6d6d0f142b4aded4ec31d0268555b /include/reset.h | |
parent | aec4298ccb337106fd0115b91d846a022fdf301d (diff) | |
download | u-boot-f5ed7481e7665d2d15037fc8eb118b0a79b24019.tar.gz u-boot-f5ed7481e7665d2d15037fc8eb118b0a79b24019.tar.bz2 u-boot-f5ed7481e7665d2d15037fc8eb118b0a79b24019.zip |
reset: add polarity field into struct reset_ctl
Some reset controllers support different polarities for reset operation,
so let's add a polarity field into struct reset_ctl.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/reset.h')
-rw-r--r-- | include/reset.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/reset.h b/include/reset.h index 65aa7a4ce5..a1a9ad5603 100644 --- a/include/reset.h +++ b/include/reset.h @@ -43,6 +43,8 @@ struct udevice; * @data: An optional data field for scenarios where a single integer ID is not * sufficient. If used, it can be populated through an .of_xlate op and * processed during the various reset ops. + * @polarity: An optional polarity field for drivers that support + * different reset polarities. * * Should additional information to identify and configure any reset signal * for any provider be required in the future, the struct could be expanded to @@ -59,6 +61,7 @@ struct reset_ctl { */ unsigned long id; unsigned long data; + unsigned long polarity; }; /** |