diff mbox series

[U-Boot,v4,1/4] reset: add polarity field into struct reset_ctl

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

Commit Message

Shawn Guo March 20, 2019, 7:32 a.m. UTC
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(+)

Comments

Joe Hershberger March 27, 2019, 7 p.m. UTC | #1
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>
Tom Rini April 24, 2019, 1:27 p.m. UTC | #2
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 mbox series

Patch

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;
 };
 
 /**