@@ -115,6 +115,14 @@ static int __set_clk_rates(struct device_node *node, bool clk_supplier)
return 0;
}
+static int __set_clk_alwon(struct device_node *node, bool clk_supplier)
+{
+ if (!clk_supplier)
+ return -EINVAL;
+
+ clk_prepare_enable(...);
+}
+
/**
* of_clk_set_defaults() - parse and set assigned clocks configuration
* @node: device node to apply clock settings for
@@ -138,6 +146,10 @@ int of_clk_set_defaults(struct device_node *node, bool clk_supplier)
if (rc < 0)
return rc;
- return __set_clk_rates(node, clk_supplier);
+ rc = __set_clk_rates(node, clk_supplier);
+ if (rc < 0)
+ return rc;
+
+ return __set_clk_alwon(node, clk_supplier);
}
EXPORT_SYMBOL_GPL(of_clk_set_defaults);