linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: rockchip: add missing rk3288 npll rate table
@ 2014-09-24 21:41 Heiko Stübner
  2014-09-24 22:51 ` Doug Anderson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Heiko Stübner @ 2014-09-24 21:41 UTC (permalink / raw)
  To: linux-arm-kernel

The npll on rk3288 is exactly the same pll type as the other 4. Yet it
was missing the link to the rate table, making rate changes impossible.
Change that by setting the table.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 drivers/clk/rockchip/clk-rk3288.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c
index 8ea885b..938d30b 100644
--- a/drivers/clk/rockchip/clk-rk3288.c
+++ b/drivers/clk/rockchip/clk-rk3288.c
@@ -143,7 +143,7 @@ static struct rockchip_pll_clock rk3288_pll_clks[] __initdata = {
 	[gpll] = PLL(pll_rk3066, PLL_GPLL, "gpll", mux_pll_p, 0, RK3288_PLL_CON(12),
 		     RK3288_MODE_CON, 12, 8, rk3288_pll_rates),
 	[npll] = PLL(pll_rk3066, PLL_NPLL, "npll",  mux_pll_p, 0, RK3288_PLL_CON(16),
-		     RK3288_MODE_CON, 14, 9, NULL),
+		     RK3288_MODE_CON, 14, 9, rk3288_pll_rates),
 };
 
 static struct clk_div_table div_hclk_cpu_t[] = {
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] clk: rockchip: add missing rk3288 npll rate table
  2014-09-24 21:41 [PATCH] clk: rockchip: add missing rk3288 npll rate table Heiko Stübner
@ 2014-09-24 22:51 ` Doug Anderson
  2014-09-25  1:35   ` Kever Yang
  2014-09-25  1:36 ` Kever Yang
  2014-09-25 21:49 ` Mike Turquette
  2 siblings, 1 reply; 6+ messages in thread
From: Doug Anderson @ 2014-09-24 22:51 UTC (permalink / raw)
  To: linux-arm-kernel

Heiko,

On Wed, Sep 24, 2014 at 2:41 PM, Heiko St?bner <heiko@sntech.de> wrote:
> The npll on rk3288 is exactly the same pll type as the other 4. Yet it
> was missing the link to the rate table, making rate changes impossible.
> Change that by setting the table.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
>  drivers/clk/rockchip/clk-rk3288.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c
> index 8ea885b..938d30b 100644
> --- a/drivers/clk/rockchip/clk-rk3288.c
> +++ b/drivers/clk/rockchip/clk-rk3288.c
> @@ -143,7 +143,7 @@ static struct rockchip_pll_clock rk3288_pll_clks[] __initdata = {
>         [gpll] = PLL(pll_rk3066, PLL_GPLL, "gpll", mux_pll_p, 0, RK3288_PLL_CON(12),
>                      RK3288_MODE_CON, 12, 8, rk3288_pll_rates),
>         [npll] = PLL(pll_rk3066, PLL_NPLL, "npll",  mux_pll_p, 0, RK3288_PLL_CON(16),
> -                    RK3288_MODE_CON, 14, 9, NULL),
> +                    RK3288_MODE_CON, 14, 9, rk3288_pll_rates),
>  };

Works for me.  Any reason not to add it to dpll, too?

-Doug

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] clk: rockchip: add missing rk3288 npll rate table
  2014-09-24 22:51 ` Doug Anderson
@ 2014-09-25  1:35   ` Kever Yang
  2014-09-25  3:56     ` Doug Anderson
  0 siblings, 1 reply; 6+ messages in thread
From: Kever Yang @ 2014-09-25  1:35 UTC (permalink / raw)
  To: linux-arm-kernel

Doug,

On 09/25/2014 06:51 AM, Doug Anderson wrote:
> Heiko,
>
> On Wed, Sep 24, 2014 at 2:41 PM, Heiko St?bner <heiko@sntech.de> wrote:
>> The npll on rk3288 is exactly the same pll type as the other 4. Yet it
>> was missing the link to the rate table, making rate changes impossible.
>> Change that by setting the table.
>>
>> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
>> ---
>>   drivers/clk/rockchip/clk-rk3288.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c
>> index 8ea885b..938d30b 100644
>> --- a/drivers/clk/rockchip/clk-rk3288.c
>> +++ b/drivers/clk/rockchip/clk-rk3288.c
>> @@ -143,7 +143,7 @@ static struct rockchip_pll_clock rk3288_pll_clks[] __initdata = {
>>          [gpll] = PLL(pll_rk3066, PLL_GPLL, "gpll", mux_pll_p, 0, RK3288_PLL_CON(12),
>>                       RK3288_MODE_CON, 12, 8, rk3288_pll_rates),
>>          [npll] = PLL(pll_rk3066, PLL_NPLL, "npll",  mux_pll_p, 0, RK3288_PLL_CON(16),
>> -                    RK3288_MODE_CON, 14, 9, NULL),
>> +                    RK3288_MODE_CON, 14, 9, rk3288_pll_rates),
>>   };
> Works for me.  Any reason not to add it to dpll, too?
dpll is used for DDR controller only, I'm not sure memory scaling driver 
will use
the clock module API, because the code for memory scaling must moved to 
intmem
(dram is not available at that time), which need to be small enough, and 
it's not
possible to use the API from clock module.

So, I think it is no need to add the rate table to dpll.

-Kever

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] clk: rockchip: add missing rk3288 npll rate table
  2014-09-24 21:41 [PATCH] clk: rockchip: add missing rk3288 npll rate table Heiko Stübner
  2014-09-24 22:51 ` Doug Anderson
@ 2014-09-25  1:36 ` Kever Yang
  2014-09-25 21:49 ` Mike Turquette
  2 siblings, 0 replies; 6+ messages in thread
From: Kever Yang @ 2014-09-25  1:36 UTC (permalink / raw)
  To: linux-arm-kernel

Heiko,

On 09/25/2014 05:41 AM, Heiko St?bner wrote:
> The npll on rk3288 is exactly the same pll type as the other 4. Yet it
> was missing the link to the rate table, making rate changes impossible.
> Change that by setting the table.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
>   drivers/clk/rockchip/clk-rk3288.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c
> index 8ea885b..938d30b 100644
> --- a/drivers/clk/rockchip/clk-rk3288.c
> +++ b/drivers/clk/rockchip/clk-rk3288.c
> @@ -143,7 +143,7 @@ static struct rockchip_pll_clock rk3288_pll_clks[] __initdata = {
>   	[gpll] = PLL(pll_rk3066, PLL_GPLL, "gpll", mux_pll_p, 0, RK3288_PLL_CON(12),
>   		     RK3288_MODE_CON, 12, 8, rk3288_pll_rates),
>   	[npll] = PLL(pll_rk3066, PLL_NPLL, "npll",  mux_pll_p, 0, RK3288_PLL_CON(16),
> -		     RK3288_MODE_CON, 14, 9, NULL),
> +		     RK3288_MODE_CON, 14, 9, rk3288_pll_rates),
>   };
>   
>   static struct clk_div_table div_hclk_cpu_t[] = {
Tested-by: Kever Yang <kever.yang@rock-chips.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] clk: rockchip: add missing rk3288 npll rate table
  2014-09-25  1:35   ` Kever Yang
@ 2014-09-25  3:56     ` Doug Anderson
  0 siblings, 0 replies; 6+ messages in thread
From: Doug Anderson @ 2014-09-25  3:56 UTC (permalink / raw)
  To: linux-arm-kernel

Kever,

On Wed, Sep 24, 2014 at 6:35 PM, Kever Yang <kever.yang@rock-chips.com> wrote:
> Doug,
>
>
> On 09/25/2014 06:51 AM, Doug Anderson wrote:
>>
>> Heiko,
>>
>> On Wed, Sep 24, 2014 at 2:41 PM, Heiko St?bner <heiko@sntech.de> wrote:
>>>
>>> The npll on rk3288 is exactly the same pll type as the other 4. Yet it
>>> was missing the link to the rate table, making rate changes impossible.
>>> Change that by setting the table.
>>>
>>> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
>>> ---
>>>   drivers/clk/rockchip/clk-rk3288.c | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/clk/rockchip/clk-rk3288.c
>>> b/drivers/clk/rockchip/clk-rk3288.c
>>> index 8ea885b..938d30b 100644
>>> --- a/drivers/clk/rockchip/clk-rk3288.c
>>> +++ b/drivers/clk/rockchip/clk-rk3288.c
>>> @@ -143,7 +143,7 @@ static struct rockchip_pll_clock rk3288_pll_clks[]
>>> __initdata = {
>>>          [gpll] = PLL(pll_rk3066, PLL_GPLL, "gpll", mux_pll_p, 0,
>>> RK3288_PLL_CON(12),
>>>                       RK3288_MODE_CON, 12, 8, rk3288_pll_rates),
>>>          [npll] = PLL(pll_rk3066, PLL_NPLL, "npll",  mux_pll_p, 0,
>>> RK3288_PLL_CON(16),
>>> -                    RK3288_MODE_CON, 14, 9, NULL),
>>> +                    RK3288_MODE_CON, 14, 9, rk3288_pll_rates),
>>>   };
>>
>> Works for me.  Any reason not to add it to dpll, too?
>
> dpll is used for DDR controller only, I'm not sure memory scaling driver
> will use
> the clock module API, because the code for memory scaling must moved to
> intmem
> (dram is not available at that time), which need to be small enough, and
> it's not
> possible to use the API from clock module.
>
> So, I think it is no need to add the rate table to dpll.

Sure.  It seems to me like it wouldn't hurt to have it listed, but
you're right that it's probably impossible that it would ever be used
so I won't push for it.

Reviewed-by: Doug Anderson <dianders@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>

-Doug

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] clk: rockchip: add missing rk3288 npll rate table
  2014-09-24 21:41 [PATCH] clk: rockchip: add missing rk3288 npll rate table Heiko Stübner
  2014-09-24 22:51 ` Doug Anderson
  2014-09-25  1:36 ` Kever Yang
@ 2014-09-25 21:49 ` Mike Turquette
  2 siblings, 0 replies; 6+ messages in thread
From: Mike Turquette @ 2014-09-25 21:49 UTC (permalink / raw)
  To: linux-arm-kernel

Quoting Heiko St?bner (2014-09-24 14:41:54)
> The npll on rk3288 is exactly the same pll type as the other 4. Yet it
> was missing the link to the rate table, making rate changes impossible.
> Change that by setting the table.
> 
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>

Applied.

Thanks,
Mike

> ---
>  drivers/clk/rockchip/clk-rk3288.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c
> index 8ea885b..938d30b 100644
> --- a/drivers/clk/rockchip/clk-rk3288.c
> +++ b/drivers/clk/rockchip/clk-rk3288.c
> @@ -143,7 +143,7 @@ static struct rockchip_pll_clock rk3288_pll_clks[] __initdata = {
>         [gpll] = PLL(pll_rk3066, PLL_GPLL, "gpll", mux_pll_p, 0, RK3288_PLL_CON(12),
>                      RK3288_MODE_CON, 12, 8, rk3288_pll_rates),
>         [npll] = PLL(pll_rk3066, PLL_NPLL, "npll",  mux_pll_p, 0, RK3288_PLL_CON(16),
> -                    RK3288_MODE_CON, 14, 9, NULL),
> +                    RK3288_MODE_CON, 14, 9, rk3288_pll_rates),
>  };
>  
>  static struct clk_div_table div_hclk_cpu_t[] = {
> -- 
> 2.1.0
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-25 21:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-24 21:41 [PATCH] clk: rockchip: add missing rk3288 npll rate table Heiko Stübner
2014-09-24 22:51 ` Doug Anderson
2014-09-25  1:35   ` Kever Yang
2014-09-25  3:56     ` Doug Anderson
2014-09-25  1:36 ` Kever Yang
2014-09-25 21:49 ` Mike Turquette

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).