linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: sboyd@codeaurora.org (Stephen Boyd)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 6/9] clk: sunxi-ng: Add A64 clocks
Date: Thu, 20 Oct 2016 11:46:01 -0700	[thread overview]
Message-ID: <20161020184601.GB26139@codeaurora.org> (raw)
In-Reply-To: <cd4dd81821b8910d40626baab2dbfdabd94b1b98.1476196031.git-series.maxime.ripard@free-electrons.com>

On 10/11, Maxime Ripard wrote:
> 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..c0e96bf6d104
> --- /dev/null
> +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c
> +
> +static int sun50i_a64_ccu_probe(struct platform_device *pdev)
> +{
> +	struct resource *res;
> +	void __iomem *reg;
> +	u32 val;
> +
> +	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> +	reg = devm_ioremap_resource(&pdev->dev, res);
> +	if (IS_ERR(reg)) {
> +		dev_err(&pdev->dev, "Could not map the clock registers\n");

devm_ioremap_resource() should already spit out an error.

> +		return PTR_ERR(reg);
> +	}
> +
> +	/* 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);
> +
> +	return sunxi_ccu_probe(pdev->dev.of_node, reg, &sun50i_a64_ccu_desc);
> +}
> +
> +static const struct of_device_id sun50i_a64_ccu_ids[] = {
> +	{ .compatible = "allwinner,sun50i-a64-ccu" },
> +	{ },

Nitpick: drop the comma

> +};
> +
> +static struct platform_driver sun50i_a64_ccu_driver = {
> +	.probe	= sun50i_a64_ccu_probe,
> +	.driver	= {
> +		.name	= "sun50i-a64-ccu",
> +		.of_match_table	= sun50i_a64_ccu_ids,
> +	},
> +};
> +builtin_platform_driver(sun50i_a64_ccu_driver);

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

  parent reply	other threads:[~2016-10-20 18:46 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-11 14:28 [PATCH v4 0/9] arm64: Allwinner A64 support based on sunxi-ng Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 1/9] clk: sunxi-ng: Rename the internal structures Maxime Ripard
2016-10-20 14:27   ` [linux-sunxi] " Chen-Yu Tsai
2016-10-20 17:24     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 2/9] clk: sunxi-ng: Remove the use of rational computations Maxime Ripard
2016-10-20 14:30   ` Chen-Yu Tsai
2016-10-20 17:26     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 3/9] clk: sunxi-ng: Finish to convert to structures for arguments Maxime Ripard
2016-10-20 14:35   ` Chen-Yu Tsai
2016-10-20 17:26     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 4/9] clk: sunxi-ng: Add minimums for all the relevant structures and clocks Maxime Ripard
2016-10-20 15:04   ` Chen-Yu Tsai
2016-10-20 17:27     ` Maxime Ripard
2016-10-21 22:57   ` André Przywara
2016-10-24 16:03     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 5/9] clk: sunxi-ng: Implement minimum for multipliers Maxime Ripard
2016-10-20 15:06   ` Chen-Yu Tsai
2016-10-20 17:30     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 6/9] clk: sunxi-ng: Add A64 clocks Maxime Ripard
2016-10-20 15:50   ` [linux-sunxi] " Chen-Yu Tsai
2016-10-20 17:47     ` Maxime Ripard
2016-10-20 18:46   ` Stephen Boyd [this message]
2016-10-24 15:05     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 7/9] arm64: dts: add Allwinner A64 SoC .dtsi Maxime Ripard
2016-10-20 15:14   ` [linux-sunxi] " Chen-Yu Tsai
2016-10-20 17:49     ` Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 8/9] Documentation: devicetree: add vendor prefix for Pine64 Maxime Ripard
2016-10-11 14:28 ` [PATCH v4 9/9] arm64: dts: add Pine64 support Maxime Ripard
2016-10-20 15:17   ` [linux-sunxi] " 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=20161020184601.GB26139@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).