Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / drivers / clk / versatile / clk-icst.h
diff --git a/kernel/drivers/clk/versatile/clk-icst.h b/kernel/drivers/clk/versatile/clk-icst.h
new file mode 100644 (file)
index 0000000..04e6f0a
--- /dev/null
@@ -0,0 +1,20 @@
+#include <asm/hardware/icst.h>
+
+/**
+ * struct clk_icst_desc - descriptor for the ICST VCO
+ * @params: ICST parameters
+ * @vco_offset: offset to the ICST VCO from the provided memory base
+ * @lock_offset: offset to the ICST VCO locking register from the provided
+ *     memory base
+ */
+struct clk_icst_desc {
+       const struct icst_params *params;
+       u32 vco_offset;
+       u32 lock_offset;
+};
+
+struct clk *icst_clk_register(struct device *dev,
+                             const struct clk_icst_desc *desc,
+                             const char *name,
+                             const char *parent_name,
+                             void __iomem *base);