Skip to contentSkip to conversation

sh: sh2a MTU2 platform data

PATCH New Magnus Damm 1 participant 1 message Apr 30, 2009 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: sh2a MTU2 platform data

From: Magnus Damm <[email protected]>

This patch adds MTU2 platform data for the following cpus:
- sh7201 (3/5 channels)
- sh7203/sh7263 (2/4 channels)
- sh7206 (3/5 channels)
- MXG (3/5 channels)

---

Periodic clockevent is tested on a rsk7203 board (sh7203).

 arch/sh/Kconfig                        |    5 +
 arch/sh/kernel/cpu/sh2a/setup-mxg.c    |  111 ++++++++++++++++++++++++++++++
 arch/sh/kernel/cpu/sh2a/setup-sh7201.c |  115 ++++++++++++++++++++++++++++++++
 arch/sh/kernel/cpu/sh2a/setup-sh7203.c |   71 +++++++++++++++++++
 arch/sh/kernel/cpu/sh2a/setup-sh7206.c |  104 ++++++++++++++++++++++++++++
 5 files changed, 405 insertions(+), 1 deletion(-)
arch/sh/Kconfig +5 -0
@@ -214,27 +214,32 @@ config CPU_SUBTYPE_SH7201
 	bool "Support SH7201 processor"
 	select CPU_SH2A
 	select CPU_HAS_FPU
+	select SYS_SUPPORTS_MTU2
  
 config CPU_SUBTYPE_SH7203
 	bool "Support SH7203 processor"
 	select CPU_SH2A
 	select CPU_HAS_FPU
 	select SYS_SUPPORTS_CMT
+	select SYS_SUPPORTS_MTU2
 
 config CPU_SUBTYPE_SH7206
 	bool "Support SH7206 processor"
 	select CPU_SH2A
 	select SYS_SUPPORTS_CMT
+	select SYS_SUPPORTS_MTU2
 
 config CPU_SUBTYPE_SH7263
 	bool "Support SH7263 processor"
 	select CPU_SH2A
 	select CPU_HAS_FPU
 	select SYS_SUPPORTS_CMT
+	select SYS_SUPPORTS_MTU2
 
 config CPU_SUBTYPE_MXG
 	bool "Support MX-G processor"
 	select CPU_SH2A
+	select SYS_SUPPORTS_MTU2
 	help
 	  Select MX-G if running on an R8A03022BG part.
 
arch/sh/kernel/cpu/sh2a/setup-mxg.c +110 -1

138 lines not on this page · raw message

arch/sh/kernel/cpu/sh2a/setup-sh7201.c +115 -0

133 lines not on this page · raw message

arch/sh/kernel/cpu/sh2a/setup-sh7203.c +71 -0

103 lines not on this page · raw message

arch/sh/kernel/cpu/sh2a/setup-sh7206.c +104 -0

134 lines not on this page · raw message