提交 f5ed7481 编写于 作者: S Shawn Guo 提交者: Tom Rini

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: NShawn Guo <shawn.guo@linaro.org>
Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
上级 aec4298c
......@@ -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;
};
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册