[PATCH] arm64: enable CMT/TMU support for Renesas SoC

STALE2930d

4 messages, 3 authors, 2018-09-06 · open the first message on its own page

[PATCH] arm64: enable CMT/TMU support for Renesas SoC

From: Sergei Shtylyov <hidden>
Date: 2018-08-31 19:54:42

Renesas R-Car gen3 SoCs have both CMT and TMU timers, so we have to enable
building them in Kconfig.platforms (as they don't normally have the prompts
in Kconfig).

Signed-off-by: Sergei Shtylyov <redacted>

---
The patch is against the ARM64 repo's 'for-next/core' branch.

 arch/arm64/Kconfig.platforms |    2 ++
 1 file changed, 2 insertions(+)

Index: linux/arch/arm64/Kconfig.platforms
===================================================================
--- linux.orig/arch/arm64/Kconfig.platforms
+++ linux/arch/arm64/Kconfig.platforms
@@ -175,6 +175,8 @@ config ARCH_RENESAS
 	select PM_GENERIC_DOMAINS
 	select RENESAS_IRQC
 	select SOC_BUS
+	select SYS_SUPPORTS_SH_CMT
+	select SYS_SUPPORTS_SH_TMU
 	help
 	  This enables support for the ARMv8 based Renesas SoCs.
 

[PATCH] arm64: enable CMT/TMU support for Renesas SoC

From: horms@verge.net.au (Simon Horman)
Date: 2018-09-03 07:17:15

On Fri, Aug 31, 2018 at 10:54:42PM +0300, Sergei Shtylyov wrote:
Renesas R-Car gen3 SoCs have both CMT and TMU timers, so we have to enable
building them in Kconfig.platforms (as they don't normally have the prompts
in Kconfig).

Signed-off-by: Sergei Shtylyov <redacted>
Thank Sergei,

this looks fine to me and I'd be happy to take it through the renesas tree,
after others have been given time for review, if that is the appropriate
path for this patch.
quoted hunk
---
The patch is against the ARM64 repo's 'for-next/core' branch.

 arch/arm64/Kconfig.platforms |    2 ++
 1 file changed, 2 insertions(+)

Index: linux/arch/arm64/Kconfig.platforms
===================================================================
--- linux.orig/arch/arm64/Kconfig.platforms
+++ linux/arch/arm64/Kconfig.platforms
@@ -175,6 +175,8 @@ config ARCH_RENESAS
 	select PM_GENERIC_DOMAINS
 	select RENESAS_IRQC
 	select SOC_BUS
+	select SYS_SUPPORTS_SH_CMT
+	select SYS_SUPPORTS_SH_TMU
 	help
 	  This enables support for the ARMv8 based Renesas SoCs.
 

[PATCH] arm64: enable CMT/TMU support for Renesas SoC

From: horms@verge.net.au (Simon Horman)
Date: 2018-09-06 09:28:37

On Mon, Sep 03, 2018 at 09:17:15AM +0200, Simon Horman wrote:
On Fri, Aug 31, 2018 at 10:54:42PM +0300, Sergei Shtylyov wrote:
quoted
Renesas R-Car gen3 SoCs have both CMT and TMU timers, so we have to enable
building them in Kconfig.platforms (as they don't normally have the prompts
in Kconfig).

Signed-off-by: Sergei Shtylyov <redacted>
Thank Sergei,

this looks fine to me and I'd be happy to take it through the renesas tree,
after others have been given time for review, if that is the appropriate
path for this patch.
Thanks again, I have applied this to the renesas tree for v4.20.

[PATCH] arm64: enable CMT/TMU support for Renesas SoC

From: geert@linux-m68k.org (Geert Uytterhoeven)
Date: 2018-09-06 09:47:00

Hi Sergei,

On Fri, Aug 31, 2018 at 9:54 PM Sergei Shtylyov
[off-list ref] wrote:
quoted hunk
Renesas R-Car gen3 SoCs have both CMT and TMU timers, so we have to enable
building them in Kconfig.platforms (as they don't normally have the prompts
in Kconfig).

Signed-off-by: Sergei Shtylyov <redacted>

---
The patch is against the ARM64 repo's 'for-next/core' branch.

 arch/arm64/Kconfig.platforms |    2 ++
 1 file changed, 2 insertions(+)

Index: linux/arch/arm64/Kconfig.platforms
===================================================================
--- linux.orig/arch/arm64/Kconfig.platforms
+++ linux/arch/arm64/Kconfig.platforms
@@ -175,6 +175,8 @@ config ARCH_RENESAS
        select PM_GENERIC_DOMAINS
        select RENESAS_IRQC
        select SOC_BUS
+       select SYS_SUPPORTS_SH_CMT
+       select SYS_SUPPORTS_SH_TMU
Perhaps the CONFIG_SH_TIMER_CMT and _TMU logic should be reworked instead,
to allow the user to choose if he wants to enable the driver or not on platforms
that do not select these two symbls?

Hardcoding this to y depending on SYS_SUPPORTS_SH_* may be needed on
SuperH and older Renesas ARM SoCs, but R-Car Gen2+ and RZ/G now use the
ARM architectured timer by default.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help