All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on RZ/G1E
@ 2017-07-18 13:29 ` Geert Uytterhoeven
  0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2017-07-18 13:29 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm
  Cc: Sergei Shtylyov, Biju Das, linux-renesas-soc, linux-arm-kernel,
	Geert Uytterhoeven

According to the datasheet, the frequency of the ARM architecture timer
on RZ/G1E depends on the frequency of the ZS clock, just like on R-Car
E2 and V2H.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Untested due to lack of hardware.

v2:
  - Rebased to avoid dependencies.
---
 arch/arm/mach-shmobile/setup-rcar-gen2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c
index 3bd505da31726869..7ab1690fab8299eb 100644
--- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
+++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
@@ -70,7 +70,8 @@ void __init rcar_gen2_timer_init(void)
 	void __iomem *base;
 	u32 freq;
 
-	if (of_machine_is_compatible("renesas,r8a7792") ||
+	if (of_machine_is_compatible("renesas,r8a7745") ||
+	    of_machine_is_compatible("renesas,r8a7792") ||
 	    of_machine_is_compatible("renesas,r8a7794")) {
 		freq = 260000000 / 8;	/* ZS / 8 */
 		/* CNTVOFF has to be initialized either from non-secure
-- 
2.7.4

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

* [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on RZ/G1E
@ 2017-07-18 13:29 ` Geert Uytterhoeven
  0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2017-07-18 13:29 UTC (permalink / raw)
  To: linux-arm-kernel

According to the datasheet, the frequency of the ARM architecture timer
on RZ/G1E depends on the frequency of the ZS clock, just like on R-Car
E2 and V2H.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Untested due to lack of hardware.

v2:
  - Rebased to avoid dependencies.
---
 arch/arm/mach-shmobile/setup-rcar-gen2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c
index 3bd505da31726869..7ab1690fab8299eb 100644
--- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
+++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
@@ -70,7 +70,8 @@ void __init rcar_gen2_timer_init(void)
 	void __iomem *base;
 	u32 freq;
 
-	if (of_machine_is_compatible("renesas,r8a7792") ||
+	if (of_machine_is_compatible("renesas,r8a7745") ||
+	    of_machine_is_compatible("renesas,r8a7792") ||
 	    of_machine_is_compatible("renesas,r8a7794")) {
 		freq = 260000000 / 8;	/* ZS / 8 */
 		/* CNTVOFF has to be initialized either from non-secure
-- 
2.7.4

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

* RE: [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on RZ/G1E
  2017-07-18 13:29 ` Geert Uytterhoeven
@ 2017-07-18 13:59   ` Biju Das
  -1 siblings, 0 replies; 8+ messages in thread
From: Biju Das @ 2017-07-18 13:59 UTC (permalink / raw)
  To: Geert Uytterhoeven, Simon Horman, Magnus Damm
  Cc: Sergei Shtylyov, linux-renesas-soc, linux-arm-kernel

It looks good to me.

Regards,
Biju

> -----Original Message-----
> From: Geert Uytterhoeven [mailto:geert+renesas@glider.be]
> Sent: 18 July 2017 14:29
> To: Simon Horman <horms@verge.net.au>; Magnus Damm
> <magnus.damm@gmail.com>
> Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>; Biju Das
> <biju.das@bp.renesas.com>; linux-renesas-soc@vger.kernel.org; linux-arm-
> kernel@lists.infradead.org; Geert Uytterhoeven <geert+renesas@glider.be>
> Subject: [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on
> RZ/G1E
>
> According to the datasheet, the frequency of the ARM architecture timer on
> RZ/G1E depends on the frequency of the ZS clock, just like on R-Car
> E2 and V2H.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Untested due to lack of hardware.
>
> v2:
>   - Rebased to avoid dependencies.
> ---
>  arch/arm/mach-shmobile/setup-rcar-gen2.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-
> shmobile/setup-rcar-gen2.c
> index 3bd505da31726869..7ab1690fab8299eb 100644
> --- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
> +++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
> @@ -70,7 +70,8 @@ void __init rcar_gen2_timer_init(void)
>  void __iomem *base;
>  u32 freq;
>
> -if (of_machine_is_compatible("renesas,r8a7792") ||
> +if (of_machine_is_compatible("renesas,r8a7745") ||
> +    of_machine_is_compatible("renesas,r8a7792") ||
>      of_machine_is_compatible("renesas,r8a7794")) {
>  freq = 260000000 / 8;/* ZS / 8 */
>  /* CNTVOFF has to be initialized either from non-secure
> --
> 2.7.4




Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

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

* [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on RZ/G1E
@ 2017-07-18 13:59   ` Biju Das
  0 siblings, 0 replies; 8+ messages in thread
From: Biju Das @ 2017-07-18 13:59 UTC (permalink / raw)
  To: linux-arm-kernel

It looks good to me.

Regards,
Biju

> -----Original Message-----
> From: Geert Uytterhoeven [mailto:geert+renesas at glider.be]
> Sent: 18 July 2017 14:29
> To: Simon Horman <horms@verge.net.au>; Magnus Damm
> <magnus.damm@gmail.com>
> Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>; Biju Das
> <biju.das@bp.renesas.com>; linux-renesas-soc at vger.kernel.org; linux-arm-
> kernel at lists.infradead.org; Geert Uytterhoeven <geert+renesas@glider.be>
> Subject: [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on
> RZ/G1E
>
> According to the datasheet, the frequency of the ARM architecture timer on
> RZ/G1E depends on the frequency of the ZS clock, just like on R-Car
> E2 and V2H.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Untested due to lack of hardware.
>
> v2:
>   - Rebased to avoid dependencies.
> ---
>  arch/arm/mach-shmobile/setup-rcar-gen2.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-
> shmobile/setup-rcar-gen2.c
> index 3bd505da31726869..7ab1690fab8299eb 100644
> --- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
> +++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
> @@ -70,7 +70,8 @@ void __init rcar_gen2_timer_init(void)
>  void __iomem *base;
>  u32 freq;
>
> -if (of_machine_is_compatible("renesas,r8a7792") ||
> +if (of_machine_is_compatible("renesas,r8a7745") ||
> +    of_machine_is_compatible("renesas,r8a7792") ||
>      of_machine_is_compatible("renesas,r8a7794")) {
>  freq = 260000000 / 8;/* ZS / 8 */
>  /* CNTVOFF has to be initialized either from non-secure
> --
> 2.7.4




Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

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

* Re: [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on RZ/G1E
  2017-07-18 13:59   ` Biju Das
@ 2017-07-27 15:25     ` Simon Horman
  -1 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2017-07-27 15:25 UTC (permalink / raw)
  To: Biju Das
  Cc: Geert Uytterhoeven, Magnus Damm, Sergei Shtylyov,
	linux-renesas-soc, linux-arm-kernel

On Tue, Jul 18, 2017 at 01:59:58PM +0000, Biju Das wrote:
> It looks good to me.
> 
> Regards,
> Biju

Thanks for your review. A few comments on it to keep in mind for next time:

* Please don't top-post
* Please consider providing a more formal tag, e.g. Reviewed-by

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

* [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on RZ/G1E
@ 2017-07-27 15:25     ` Simon Horman
  0 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2017-07-27 15:25 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jul 18, 2017 at 01:59:58PM +0000, Biju Das wrote:
> It looks good to me.
> 
> Regards,
> Biju

Thanks for your review. A few comments on it to keep in mind for next time:

* Please don't top-post
* Please consider providing a more formal tag, e.g. Reviewed-by

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

* Re: [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on RZ/G1E
  2017-07-18 13:29 ` Geert Uytterhoeven
@ 2017-07-27 15:25   ` Simon Horman
  -1 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2017-07-27 15:25 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Magnus Damm, Sergei Shtylyov, Biju Das, linux-renesas-soc,
	linux-arm-kernel

On Tue, Jul 18, 2017 at 03:29:17PM +0200, Geert Uytterhoeven wrote:
> According to the datasheet, the frequency of the ARM architecture timer
> on RZ/G1E depends on the frequency of the ZS clock, just like on R-Car
> E2 and V2H.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Untested due to lack of hardware.
> 
> v2:
>   - Rebased to avoid dependencies.

Thanks. I have applied this for v4.14.

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

* [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on RZ/G1E
@ 2017-07-27 15:25   ` Simon Horman
  0 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2017-07-27 15:25 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jul 18, 2017 at 03:29:17PM +0200, Geert Uytterhoeven wrote:
> According to the datasheet, the frequency of the ARM architecture timer
> on RZ/G1E depends on the frequency of the ZS clock, just like on R-Car
> E2 and V2H.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Untested due to lack of hardware.
> 
> v2:
>   - Rebased to avoid dependencies.

Thanks. I have applied this for v4.14.

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

end of thread, other threads:[~2017-07-27 15:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-18 13:29 [PATCH] ARM: shmobile: rcar-gen2: Correct arch timer frequency on RZ/G1E Geert Uytterhoeven
2017-07-18 13:29 ` Geert Uytterhoeven
2017-07-18 13:59 ` Biju Das
2017-07-18 13:59   ` Biju Das
2017-07-27 15:25   ` Simon Horman
2017-07-27 15:25     ` Simon Horman
2017-07-27 15:25 ` Simon Horman
2017-07-27 15:25   ` Simon Horman

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.