arm: mvebu: ds414: define CONFIG_SYS_U_BOOT_OFFS
[oweals/u-boot.git] / include / reset-uclass.h
index 50adeca75797d6528389470d1ef7291867af3b88..9a0696dd1e3b74f6ecfe747a261129ee0bc9a532 100644 (file)
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Copyright (c) 2016, NVIDIA CORPORATION.
- *
- * SPDX-License-Identifier: GPL-2.0
  */
 
 #ifndef _RESET_UCLASS_H
@@ -11,6 +10,7 @@
 
 #include <reset.h>
 
+struct ofnode_phandle_args;
 struct udevice;
 
 /**
@@ -37,7 +37,7 @@ struct reset_ops {
         * @return 0 if OK, or a negative error code.
         */
        int (*of_xlate)(struct reset_ctl *reset_ctl,
-                       struct fdtdec_phandle_args *args);
+                       struct ofnode_phandle_args *args);
        /**
         * request - Request a translated reset control.
         *
@@ -51,14 +51,14 @@ struct reset_ops {
         */
        int (*request)(struct reset_ctl *reset_ctl);
        /**
-        * free - Free a previously requested reset control.
+        * rfree - Free a previously requested reset control.
         *
         * This is the implementation of the client reset_free() API.
         *
         * @reset_ctl:  The reset control to free.
         * @return 0 if OK, or a negative error code.
         */
-       int (*free)(struct reset_ctl *reset_ctl);
+       int (*rfree)(struct reset_ctl *reset_ctl);
        /**
         * rst_assert - Assert a reset signal.
         *
@@ -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