Skip to contentSkip to conversation

sh: sh7786 clock support

PATCH New Kuninori Morimoto 1 participant 1 message Feb 23, 2009 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 sh: sh7786 clock support

This patch implements clock setting for the sh7786 processor.

---

Quoted 1 line

Paul

Please check this stupid patch carefully.
Don't believe my code please.

 arch/sh/include/cpu-sh4/cpu/freq.h     |    4 +
 arch/sh/kernel/cpu/sh4a/Makefile       |    1 +
 arch/sh/kernel/cpu/sh4a/clock-sh7786.c |  148 ++++++++++++++++++++++++++++++++
 3 files changed, 153 insertions(+), 0 deletions(-)
 create mode 100644 arch/sh/kernel/cpu/sh4a/clock-sh7786.c
arch/sh/include/cpu-sh4/cpu/freq.h +4 -0
index c23af81..749d1c4 100644
@@ -29,6 +29,10 @@
 #define FRQCR0			0xffc80000
 #define FRQCR1			0xffc80004
 #define FRQMR1			0xffc80014
+#elif defined(CONFIG_CPU_SUBTYPE_SH7786)
+#define FRQCR0			0xffc40000
+#define FRQCR1			0xffc40004
+#define FRQMR1			0xffc40014
 #elif defined(CONFIG_CPU_SUBTYPE_SHX3)
 #define FRQCR			0xffc00014
 #else
arch/sh/kernel/cpu/sh4a/Makefile +1 -0
index 282ded1..1a92361 100644
@@ -22,6 +22,7 @@ clock-$(CONFIG_CPU_SUBTYPE_SH7763)	:= clock-sh7763.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7770)	:= clock-sh7770.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7780)	:= clock-sh7780.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7785)	:= clock-sh7785.o
+clock-$(CONFIG_CPU_SUBTYPE_SH7786)	:= clock-sh7786.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7343)	:= clock-sh7722.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7722)	:= clock-sh7722.o
 clock-$(CONFIG_CPU_SUBTYPE_SH7723)	:= clock-sh7722.o
arch/sh/kernel/cpu/sh4a/clock-sh7786.c new file +148 -0

148 lines not on this page · raw message

Signature · 1 line
1.5.6.3