Thread (4 messages) 4 messages, 3 authors, 2016-11-23

[PATCH] clk: qoriq: added ls1012a clock configuration

From: Y.T. Tang <hidden>
Date: 2016-11-22 09:53:37
Also in: linux-clk, lkml

Hi Scott,
-----Original Message-----
From: Scott Wood [mailto:oss at buserror.net]
Sent: Wednesday, November 16, 2016 2:54 PM
To: Y.T. Tang <redacted>; mturquette at baylibre.com
Cc: sboyd at codeaurora.org; linux-kernel at vger.kernel.org; Scott Wood
[off-list ref]; linux-clk at vger.kernel.org; linux-arm-
kernel at lists.infradead.org
Subject: Re: [PATCH] clk: qoriq: added ls1012a clock configuration

On Wed, 2016-11-16 at 13:58 +0800, yuantian.tang at nxp.com wrote:
quoted
From: Tang Yuantian <redacted>

Added ls1012a clock configuation information.
Do we really need the same line in the changelog twice?
quoted
Signed-off-by: Tang Yuantian <redacted>
---
?drivers/clk/clk-qoriq.c | 19 +++++++++++++++++++
?1 file changed, 19 insertions(+)
diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index
1bece0f..563d874 100644
--- a/drivers/clk/clk-qoriq.c
+++ b/drivers/clk/clk-qoriq.c
@@ -202,6 +202,14 @@ static const struct clockgen_muxinfo ls1021a_cmux
= {
quoted
?	}
?};

+static const struct clockgen_muxinfo ls1012a_cmux = {
+	{
+		[0] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV1 },
+		{},
+		[2] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV2 },
+	}
+};
+
Based on the "ls1021a_cmux" in the context it looks like this patch is
intended to apply on top
of?https://patchwork.kernel.org/patch/8923541/?but I don't see any mention
of that.
I saw this patch had been merged already.

Regards,
Yuantian
quoted
?static const struct clockgen_muxinfo t1040_cmux = {
?	{
?		[0] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV1 }, @@ -482,6
+490,16 @@
quoted
static const struct clockgen_chipinfo chipinfo[] = {
?		.pll_mask = 0x03,
?	},
?	{
+		.compat = "fsl,ls1012a-clockgen",
+		.cmux_groups = {
+			&ls1012a_cmux
+		},
+		.cmux_to_group = {
+			0, -1
+		},
+		.pll_mask = 0x03,
+	},
+	{
?		.compat = "fsl,ls1043a-clockgen",
?		.init_periph = t2080_init_periph,
?		.cmux_groups = {
@@ -1284,6 +1302,7 @@ CLK_OF_DECLARE(qoriq_clockgen_2,
"fsl,qoriq-clockgen- 2.0", clockgen_init);
?CLK_OF_DECLARE(qoriq_clockgen_ls1021a, "fsl,ls1021a-clockgen",
clockgen_init);
?CLK_OF_DECLARE(qoriq_clockgen_ls1043a, "fsl,ls1043a-clockgen",
clockgen_init);
?CLK_OF_DECLARE(qoriq_clockgen_ls2080a, "fsl,ls2080a-clockgen",
clockgen_init);
+CLK_OF_DECLARE(qoriq_clockgen_ls1012a, "fsl,ls1012a-clockgen",
clockgen_init);
Please keep these lists of chips sorted (or as close as you can in the case of
the cmux structs which already have some sorting issues).

-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help