All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <k.kozlowski@samsung.com>
To: Alim Akhtar <alim.akhtar@samsung.com>, linux-samsung-soc@vger.kernel.org
Cc: s.nawrocki@samsung.com, tomasz.figa@gmail.com, kgene@kernel.org,
	mturquette@baylibre.com, amit.daniel@samsung.com
Subject: Re: [PATCH 2/4] clk: samsung: exynos7: Update CMU TOP1 block
Date: Tue, 25 Aug 2015 16:05:25 +0900	[thread overview]
Message-ID: <55DC13B5.7080804@samsung.com> (raw)
In-Reply-To: <1440414356-1805-3-git-send-email-alim.akhtar@samsung.com>

On 24.08.2015 20:05, Alim Akhtar wrote:
> This updates CMU TOP1 block clock as per latest UM.

I think description is not entirely correct. Some of the changes here
were present in the first manual. Please describe it more, what exactly
is being fixed and updated to latest UM.

Best regards,
Krzysztof

> 
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> ---
>  drivers/clk/samsung/clk-exynos7.c |   24 +++++++++++++++---------
>  1 file changed, 15 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/clk/samsung/clk-exynos7.c b/drivers/clk/samsung/clk-exynos7.c
> index cbf1bd2..d6c4548 100644
> --- a/drivers/clk/samsung/clk-exynos7.c
> +++ b/drivers/clk/samsung/clk-exynos7.c
> @@ -368,12 +368,15 @@ CLK_OF_DECLARE(exynos7_clk_top0, "samsung,exynos7-clock-top0",
>  #define MUX_SEL_TOP13			0x020C
>  #define MUX_SEL_TOP1_FSYS0		0x0224
>  #define MUX_SEL_TOP1_FSYS1		0x0228
> +#define MUX_SEL_TOP1_FSYS11		0x022C
>  #define DIV_TOP13			0x060C
>  #define DIV_TOP1_FSYS0			0x0624
>  #define DIV_TOP1_FSYS1			0x0628
> +#define DIV_TOP1_FSYS11			0x062C
>  #define ENABLE_ACLK_TOP13		0x080C
>  #define ENABLE_SCLK_TOP1_FSYS0		0x0A24
>  #define ENABLE_SCLK_TOP1_FSYS1		0x0A28
> +#define ENABLE_SCLK_TOP1_FSYS11		0x0A2C
>  
>  /* List of parent clocks for Muxes in CMU_TOP1 */
>  PNAME(mout_top1_bus0_pll_p)	= { "fin_pll", "dout_sclk_bus0_pll" };
> @@ -400,12 +403,15 @@ static unsigned long top1_clk_regs[] __initdata = {
>  	MUX_SEL_TOP13,
>  	MUX_SEL_TOP1_FSYS0,
>  	MUX_SEL_TOP1_FSYS1,
> +	MUX_SEL_TOP1_FSYS11,
>  	DIV_TOP13,
>  	DIV_TOP1_FSYS0,
>  	DIV_TOP1_FSYS1,
> +	DIV_TOP1_FSYS11,
>  	ENABLE_ACLK_TOP13,
>  	ENABLE_SCLK_TOP1_FSYS0,
>  	ENABLE_SCLK_TOP1_FSYS1,
> +	ENABLE_SCLK_TOP1_FSYS11,
>  };
>  
>  static struct samsung_mux_clock top1_mux_clks[] __initdata = {
> @@ -428,12 +434,12 @@ static struct samsung_mux_clock top1_mux_clks[] __initdata = {
>  	MUX(0, "mout_aclk_fsys1_200", mout_top1_group1, MUX_SEL_TOP13, 24, 2),
>  	MUX(0, "mout_aclk_fsys0_200", mout_top1_group1, MUX_SEL_TOP13, 28, 2),
>  
> -	MUX(0, "mout_sclk_mmc2", mout_top1_group1, MUX_SEL_TOP1_FSYS0, 24, 2),
> +	MUX(0, "mout_sclk_mmc2", mout_top1_group1, MUX_SEL_TOP1_FSYS0, 16, 2),
>  	MUX(0, "mout_sclk_usbdrd300", mout_top1_group1,
>  		MUX_SEL_TOP1_FSYS0, 28, 2),
>  
> -	MUX(0, "mout_sclk_mmc1", mout_top1_group1, MUX_SEL_TOP1_FSYS1, 24, 2),
> -	MUX(0, "mout_sclk_mmc0", mout_top1_group1, MUX_SEL_TOP1_FSYS1, 28, 2),
> +	MUX(0, "mout_sclk_mmc1", mout_top1_group1, MUX_SEL_TOP1_FSYS11, 0, 2),
> +	MUX(0, "mout_sclk_mmc0", mout_top1_group1, MUX_SEL_TOP1_FSYS11, 12, 2),
>  };
>  
>  static struct samsung_div_clock top1_div_clks[] __initdata = {
> @@ -443,26 +449,26 @@ static struct samsung_div_clock top1_div_clks[] __initdata = {
>  		DIV_TOP13, 28, 4),
>  
>  	DIV(DOUT_SCLK_MMC2, "dout_sclk_mmc2", "mout_sclk_mmc2",
> -		DIV_TOP1_FSYS0, 24, 4),
> +		DIV_TOP1_FSYS0, 16, 10),
>  	DIV(0, "dout_sclk_usbdrd300", "mout_sclk_usbdrd300",
>  		DIV_TOP1_FSYS0, 28, 4),
>  
>  	DIV(DOUT_SCLK_MMC1, "dout_sclk_mmc1", "mout_sclk_mmc1",
> -		DIV_TOP1_FSYS1, 24, 4),
> +		DIV_TOP1_FSYS11, 0, 10),
>  	DIV(DOUT_SCLK_MMC0, "dout_sclk_mmc0", "mout_sclk_mmc0",
> -		DIV_TOP1_FSYS1, 28, 4),
> +		DIV_TOP1_FSYS11, 12, 10),
>  };
>  
>  static struct samsung_gate_clock top1_gate_clks[] __initdata = {
>  	GATE(CLK_SCLK_MMC2, "sclk_mmc2", "dout_sclk_mmc2",
> -		ENABLE_SCLK_TOP1_FSYS0, 24, CLK_SET_RATE_PARENT, 0),
> +		ENABLE_SCLK_TOP1_FSYS0, 16, CLK_SET_RATE_PARENT, 0),
>  	GATE(0, "sclk_usbdrd300", "dout_sclk_usbdrd300",
>  		ENABLE_SCLK_TOP1_FSYS0, 28, 0, 0),
>  
>  	GATE(CLK_SCLK_MMC1, "sclk_mmc1", "dout_sclk_mmc1",
> -		ENABLE_SCLK_TOP1_FSYS1, 24, CLK_SET_RATE_PARENT, 0),
> +		ENABLE_SCLK_TOP1_FSYS11, 0, CLK_SET_RATE_PARENT, 0),
>  	GATE(CLK_SCLK_MMC0, "sclk_mmc0", "dout_sclk_mmc0",
> -		ENABLE_SCLK_TOP1_FSYS1, 28, CLK_SET_RATE_PARENT, 0),
> +		ENABLE_SCLK_TOP1_FSYS11, 12, CLK_SET_RATE_PARENT, 0),
>  };
>  
>  static struct samsung_fixed_factor_clock top1_fixed_factor_clks[] __initdata = {
> 

  reply	other threads:[~2015-08-25  7:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24 11:05 [PATCH 0/4] Improvements on exynos7 clock Alim Akhtar
2015-08-24 11:05 ` [PATCH 1/4] clk: samsung: exynos7: Update CMU TOPC block clock Alim Akhtar
2015-08-25  7:02   ` Krzysztof Kozlowski
2015-08-25 15:59     ` Alim Akhtar
2015-08-24 11:05 ` [PATCH 2/4] clk: samsung: exynos7: Update CMU TOP1 block Alim Akhtar
2015-08-25  7:05   ` Krzysztof Kozlowski [this message]
2015-08-25 16:00     ` Alim Akhtar
2015-08-24 11:05 ` [PATCH 3/4] clk: samsung: exynos7: Correct nr_clk_ids for fsys0 Alim Akhtar
2015-08-25  7:16   ` Krzysztof Kozlowski
2015-08-25 16:02     ` Alim Akhtar
2015-08-24 11:05 ` [PATCH 4/4] clk: samsung: exynos7: correct nr_clk_ids for fsys1 Alim Akhtar
2015-08-25  7:18   ` Krzysztof Kozlowski
2015-08-25 16:02     ` Alim Akhtar

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=55DC13B5.7080804@samsung.com \
    --to=k.kozlowski@samsung.com \
    --cc=alim.akhtar@samsung.com \
    --cc=amit.daniel@samsung.com \
    --cc=kgene@kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=s.nawrocki@samsung.com \
    --cc=tomasz.figa@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.