Re: [PATCH v4 3/5] clk: mvebu: new driver for Armada AP806 system controller
From: Stephen Boyd <hidden>
Date: 2016-04-02 01:27:31
Also in:
linux-arm-kernel, linux-clk
From: Stephen Boyd <hidden>
Date: 2016-04-02 01:27:31
Also in:
linux-arm-kernel, linux-clk
On 03/27, Thomas Petazzoni wrote:
diff --git a/drivers/clk/mvebu/ap806-system-controller.c b/drivers/clk/mvebu/ap806-system-controller.c new file mode 100644 index 0000000..c33c209 --- /dev/null +++ b/drivers/clk/mvebu/ap806-system-controller.c@@ -0,0 +1,106 @@ + +#define pr_fmt(fmt) "ap806-system-controller: " fmt + +#include <linux/kernel.h> +#include <linux/clk.h>
Is this used?
+#include <linux/clk-provider.h> +#include <linux/io.h>
Is this used?
+#include <linux/mfd/syscon.h>
+#include <linux/of.h>
+#include <linux/of_address.h>
+#include <linux/regmap.h>
+
+#define AP806_SAR_REG 0x400
+#define AP806_SAR_CLKFREQ_MODE_MASK 0x1f
+
+#define AP806_CLK_NUM 4
+
+static struct clk *ap806_clks[AP806_CLK_NUM];
+
+static struct clk_onecell_data ap806_clk_data = {
+ .clks = ap806_clks,
+ .clk_num = AP806_CLK_NUM,
+};
+
+static void __init ap806_syscon_clk_init(struct device_node *np)Can this be a platform driver instead? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html