Message ID | 20190320073241.4859-2-shawn.guo@linaro.org |
---|---|
State | Accepted |
Commit | f5ed7481e7665d2d15037fc8eb118b0a79b24019 |
Delegated to: | Tom Rini |
Headers | show |
Series | Add Ethernet support for Poplar board | expand |
On Wed, Mar 20, 2019 at 2:34 AM Shawn Guo <shawn.guo@linaro.org> wrote: > > 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>
On Wed, Mar 20, 2019 at 03:32:38PM +0800, Shawn Guo wrote: > 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> Applied to u-boot/master, thanks!
diff --git a/include/reset.h b/include/reset.h index 65aa7a4ce5e9..a1a9ad5603db 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; }; /**
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> --- include/reset.h | 3 +++ 1 file changed, 3 insertions(+)