From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: Re: [PATCH v4 3/5] clk: mvebu: new driver for Armada AP806 system controller Date: Fri, 1 Apr 2016 18:27:31 -0700 Message-ID: <20160402012731.GE18567@codeaurora.org> References: <1459070777-18049-1-git-send-email-thomas.petazzoni@free-electrons.com> <1459070777-18049-4-git-send-email-thomas.petazzoni@free-electrons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1459070777-18049-4-git-send-email-thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Thomas Petazzoni Cc: Michael Turquette , linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring , Ian Campbell , Pawel Moll , Mark Rutland , Kumar Gala , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Nadav Haklai , Lior Amsalem , Hanna Hawa , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org 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 > +#include Is this used? > +#include > +#include Is this used? > +#include > +#include > +#include > +#include > + > +#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