From: sboyd@codeaurora.org (Stephen Boyd)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/4] clk: sunxi-ng: Add A64 clocks
Date: Wed, 14 Sep 2016 14:45:54 -0700 [thread overview]
Message-ID: <20160914214554.GH7243@codeaurora.org> (raw)
In-Reply-To: <20160909201029.24530-2-maxime.ripard@free-electrons.com>
On 09/09, Maxime Ripard wrote:
> index 106cba27c331..964f22091a10 100644
> --- a/drivers/clk/sunxi-ng/Makefile
> +++ b/drivers/clk/sunxi-ng/Makefile
> @@ -22,3 +22,4 @@ obj-$(CONFIG_SUN6I_A31_CCU) += ccu-sun6i-a31.o
> obj-$(CONFIG_SUN8I_A23_CCU) += ccu-sun8i-a23.o
> obj-$(CONFIG_SUN8I_A33_CCU) += ccu-sun8i-a33.o
> obj-$(CONFIG_SUN8I_H3_CCU) += ccu-sun8i-h3.o
> +obj-$(CONFIG_SUN50I_A64_CCU) += ccu-sun50i-a64.o
Maybe do alphanumeric ordering?
> diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c
> new file mode 100644
> index 000000000000..d51ee416f515
> --- /dev/null
> +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c
> @@ -0,0 +1,870 @@
> +
> +static void __init sun50i_a64_ccu_setup(struct device_node *node)
> +{
> + void __iomem *reg;
> + u32 val;
> +
> + reg = of_io_request_and_map(node, 0, of_node_full_name(node));
> + if (IS_ERR(reg)) {
> + pr_err("%s: Could not map the clock registers\n",
> + of_node_full_name(node));
> + return;
> + }
> +
> + /* Force the PLL-Audio-1x divider to 4 */
> + val = readl(reg + SUN50I_A64_PLL_AUDIO_REG);
> + val &= ~GENMASK(19, 16);
> + writel(val | (3 << 16), reg + SUN50I_A64_PLL_AUDIO_REG);
> +
> + writel(0x515, reg + SUN50I_A64_PLL_MIPI_REG);
> +
> + sunxi_ccu_probe(node, reg, &sun50i_a64_ccu_desc);
> +}
> +CLK_OF_DECLARE(sun50i_a64_ccu, "allwinner,sun50i-a64-ccu",
> + sun50i_a64_ccu_setup);
Is there a reason it can't be a platform driver?
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2016-09-14 21:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 20:10 [PATCH v2 0/4] arm64: Allwinner A64 support based on sunxi-ng Maxime Ripard
2016-09-09 20:10 ` [PATCH v2 1/4] clk: sunxi-ng: Add A64 clocks Maxime Ripard
2016-09-10 3:24 ` Chen-Yu Tsai
2016-09-17 14:08 ` Maxime Ripard
2016-09-14 21:45 ` Stephen Boyd [this message]
2016-09-17 14:23 ` Maxime Ripard
2016-09-09 20:10 ` [PATCH v2 2/4] Documentation: devicetree: add vendor prefix for Pine64 Maxime Ripard
2016-09-10 1:54 ` Chen-Yu Tsai
2016-09-09 20:10 ` [PATCH v2 3/4] arm64: dts: add Allwinner A64 SoC .dtsi Maxime Ripard
2016-09-10 2:21 ` Chen-Yu Tsai
2016-09-15 0:08 ` André Przywara
2016-09-17 14:51 ` Maxime Ripard
2016-09-18 1:21 ` Icenowy Zheng
2016-09-09 20:10 ` [PATCH v2 4/4] arm64: dts: add Pine64 support Maxime Ripard
2016-09-10 2:33 ` Chen-Yu Tsai
2016-09-12 10:11 ` Andre Przywara
2016-09-19 15:14 ` Chen-Yu Tsai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160914214554.GH7243@codeaurora.org \
--to=sboyd@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).