Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1694743 > unrolled thread

[PATCH v3 03/10] clk: sunxi-ng: a83t: Support new timing mode for mmc2 clock

Started byChen-Yu Tsai <wens@csie.org>
First post2017-07-24 16:00 +0200
Last post2017-07-25 09:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v3 03/10] clk: sunxi-ng: a83t: Support new timing mode for mmc2 clock Chen-Yu Tsai <wens@csie.org> - 2017-07-24 16:00 +0200
    Re: [PATCH v3 03/10] clk: sunxi-ng: a83t: Support new timing mode  for mmc2 clock Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-07-25 09:40 +0200

#1694743 — [PATCH v3 03/10] clk: sunxi-ng: a83t: Support new timing mode for mmc2 clock

FromChen-Yu Tsai <wens@csie.org>
Date2017-07-24 16:00 +0200
Subject[PATCH v3 03/10] clk: sunxi-ng: a83t: Support new timing mode for mmc2 clock
Message-ID<u6M3T-5Cy-13@gated-at.bofh.it>
The MMC2 clock supports a new timing mode. When the new mode is active,
the output clock rate is halved.

This patch sets the feature flag for the new timing mode, and adds
a pre-divider based on the mode bit.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c b/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
index 947f9f6e05d2..e43acebdfbcd 100644
--- a/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
@@ -418,14 +418,8 @@ static SUNXI_CCU_PHASE(mmc1_sample_clk, "mmc1-sample", "mmc1",
 static SUNXI_CCU_PHASE(mmc1_output_clk, "mmc1-output", "mmc1",
 		       0x08c, 8, 3, 0);
 
-/* TODO Support MMC2 clock's new timing mode. */
-static SUNXI_CCU_MP_WITH_MUX_GATE(mmc2_clk, "mmc2", mod0_default_parents,
-				  0x090,
-				  0, 4,		/* M */
-				  16, 2,	/* P */
-				  24, 2,	/* mux */
-				  BIT(31),	/* gate */
-				  0);
+static SUNXI_CCU_MP_MMC_WITH_MUX_GATE(mmc2_clk, "mmc2", mod0_default_parents,
+				      0x090, 0);
 
 static SUNXI_CCU_PHASE(mmc2_sample_clk, "mmc2-sample", "mmc2",
 		       0x090, 20, 3, 0);
-- 
2.13.3

[toc] | [next] | [standalone]


#1695438 — Re: [PATCH v3 03/10] clk: sunxi-ng: a83t: Support new timing mode for mmc2 clock

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2017-07-25 09:40 +0200
SubjectRe: [PATCH v3 03/10] clk: sunxi-ng: a83t: Support new timing mode for mmc2 clock
Message-ID<u72BI-8li-23@gated-at.bofh.it>
In reply to#1694743

[Multipart message — attachments visible in raw view] — view raw

On Mon, Jul 24, 2017 at 09:58:58PM +0800, Chen-Yu Tsai wrote:
> The MMC2 clock supports a new timing mode. When the new mode is active,
> the output clock rate is halved.
> 
> This patch sets the feature flag for the new timing mode, and adds
> a pre-divider based on the mode bit.
> 
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web