]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/clk-uclass.h
Merge tag 'xilinx-for-v2018.03' of git://git.denx.de/u-boot-microblaze
[people/ms/u-boot.git] / include / clk-uclass.h
index 07c10654955cb7bdb75f4d2a923a4c1b5cdf3ff0..75933eb8841fb86bdf7efc999dfe0a4bffa68928 100644 (file)
@@ -12,7 +12,8 @@
 /* See clk.h for background documentation. */
 
 #include <clk.h>
-#include <fdtdec.h>
+
+struct ofnode_phandle_args;
 
 /**
  * struct clk_ops - The functions that a clock driver must implement.
@@ -37,7 +38,7 @@ struct clk_ops {
         * @return 0 if OK, or a negative error code.
         */
        int (*of_xlate)(struct clk *clock,
-                       struct fdtdec_phandle_args *args);
+                       struct ofnode_phandle_args *args);
        /**
         * request - Request a translated clock.
         *
@@ -76,6 +77,14 @@ struct clk_ops {
         * @return new rate, or -ve error code.
         */
        ulong (*set_rate)(struct clk *clk, ulong rate);
+       /**
+        * set_parent() - Set current clock parent
+        *
+        * @clk:        The clock to manipulate.
+        * @parent:     New clock parent.
+        * @return zero on success, or -ve error code.
+        */
+       int (*set_parent)(struct clk *clk, struct clk *parent);
        /**
         * enable() - Enable a clock.
         *