[U-Boot] [PATCH v4 1/4] reset: add polarity field into struct reset_ctl
Shawn Guo
shawn.guo at linaro.org
Wed Mar 20 07:32:38 UTC 2019
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 at linaro.org>
---
include/reset.h | 3 +++
1 file changed, 3 insertions(+)
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;
};
/**
--
2.18.0
More information about the U-Boot
mailing list