mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
dm: reset: Update uclass to allow querying reset status
Add a reset operations function pointer to support querying the current status of a reset control. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
committed by
Tom Rini
parent
aec99c9776
commit
e7012e6e1f
@@ -76,6 +76,14 @@ struct reset_ops {
|
||||
* @return 0 if OK, or a negative error code.
|
||||
*/
|
||||
int (*rst_deassert)(struct reset_ctl *reset_ctl);
|
||||
/**
|
||||
* rst_status - Check reset signal status.
|
||||
*
|
||||
* @reset_ctl: The reset signal to check.
|
||||
* @return 0 if deasserted, positive if asserted, or a negative
|
||||
* error code.
|
||||
*/
|
||||
int (*rst_status)(struct reset_ctl *reset_ctl);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user