reset: add reset_control_status helper function
There are cases where a system will want to read a reset status bit before doing any other toggling. Add a reset_control_status helper function to the reset controller API. Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:

committed by
Philipp Zabel

parent
f114040e3e
commit
729de41baf
@@ -12,11 +12,13 @@ struct reset_controller_dev;
|
||||
* things to reset the device
|
||||
* @assert: manually assert the reset line, if supported
|
||||
* @deassert: manually deassert the reset line, if supported
|
||||
* @status: return the status of the reset line, if supported
|
||||
*/
|
||||
struct reset_control_ops {
|
||||
int (*reset)(struct reset_controller_dev *rcdev, unsigned long id);
|
||||
int (*assert)(struct reset_controller_dev *rcdev, unsigned long id);
|
||||
int (*deassert)(struct reset_controller_dev *rcdev, unsigned long id);
|
||||
int (*status)(struct reset_controller_dev *rcdev, unsigned long id);
|
||||
};
|
||||
|
||||
struct module;
|
||||
|
Reference in New Issue
Block a user