diff mbox

[U-Boot,5/6] Add SH7206 support.

Message ID 1392121486-5165-5-git-send-email-ysato@users.sourceforge.jp
State Changes Requested
Delegated to: Nobuhiro Iwamatsu
Headers show

Commit Message

Yoshinori Sato Feb. 11, 2014, 12:24 p.m. UTC
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
---
 arch/sh/include/asm/cpu_sh2.h    |  2 ++
 arch/sh/include/asm/cpu_sh7206.h | 75 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)
 create mode 100644 arch/sh/include/asm/cpu_sh7206.h
diff mbox

Patch

diff --git a/arch/sh/include/asm/cpu_sh2.h b/arch/sh/include/asm/cpu_sh2.h
index 62b5179..deadece 100644
--- a/arch/sh/include/asm/cpu_sh2.h
+++ b/arch/sh/include/asm/cpu_sh2.h
@@ -13,6 +13,8 @@ 
 #endif
 #if defined(CONFIG_CPU_SH7203)
 # include <asm/cpu_sh7203.h>
+#elif defined(CONFIG_CPU_SH7206)
+# include <asm/cpu_sh7206.h>
 #elif defined(CONFIG_CPU_SH7264)
 # include <asm/cpu_sh7264.h>
 #elif defined(CONFIG_CPU_SH7269)
diff --git a/arch/sh/include/asm/cpu_sh7206.h b/arch/sh/include/asm/cpu_sh7206.h
new file mode 100644
index 0000000..7cfdd31
--- /dev/null
+++ b/arch/sh/include/asm/cpu_sh7206.h
@@ -0,0 +1,75 @@ 
+#ifndef _ASM_CPU_SH7206_H_
+#define _ASM_CPU_SH7206_H_
+
+/* Cache */
+#define CCR1		0xFFFC1000
+#define CCR2		0xFFFC1004
+#define CCR		CCR1
+
+#define CMNCR           0xFFFC0000
+#define CS0BCR          0xFFFC0004
+#define CS2BCR          0xFFFC000C
+#define CS3BCR          0xFFFC0010
+#define CS4BCR          0xFFFC0014
+#define CS5BCR          0xFFFC0018
+#define CS0WCR          0xFFFC0028
+#define CS2WCR          0xFFFC0030
+#define CS3WCR          0xFFFC0034
+#define CS4WCR          0xFFFC0038
+#define CS5WCR          0xFFFC003C
+#define SDCR            0xFFFC004C
+#define RTCSR           0xFFFC0050
+#define RTCNT           0xFFFC0054
+#define RTCOR           0xFFFC0058
+
+/* SCIF */
+#define SCSMR_0		0xFFFE8000
+#define SCSMR_1		0xFFFE8800
+#define SCSMR_2		0xFFFE9000
+#define SCSMR_3		0xFFFE9800
+#define SCIF0_BASE	SCSMR_0
+#define SCIF1_BASE	SCSMR_1
+#define SCIF2_BASE	SCSMR_2
+#define SCIF3_BASE	SCSMR_3
+
+/* Timer(CMT) */
+#define CMSTR 		0xFFFEC000
+#define CMCSR_0 	0xFFFEC002
+#define CMCNT_0 	0xFFFEC004
+#define CMCOR_0 	0xFFFEC006
+#define CMCSR_1 	0xFFFEC008
+#define CMCNT_1 	0xFFFEC00A
+#define CMCOR_1		0xFFFEC00C
+
+/* PFC */
+#define	PACRH3		0xFFFE380A
+#define PACRH2		0xFFFE380C
+#define PACRH1		0xFFFE380E
+#define PACRL4		0xFFFE3810
+#define PACRL3		0xFFFE3812
+#define PACRL2		0xFFFE3814
+#define PACRL1		0xFFFE3816
+#define PBCR3		0xFFFE3892
+#define PBCR2		0xFFFE3894
+#define PBCR1		0xFFFE3896
+#define PCCRL1		0xFFFE3916
+#define PDCRH4		0xFFFE3988
+#define PDCRH3		0xFFFE398A
+#define PDCRH2		0xFFFE398C
+#define PDCRH1		0xFFFE398E
+#define PDCRL4		0xFFFE3990
+#define PDCRL3		0xFFFE3992
+#define PECRH1		0xFFFE3A0E
+#define PECRL4		0xFFFE3A10
+#define PECRL3		0xFFFE3A12
+#define PECRL2		0xFFFE3A14
+#define IFCR		0xFFFE3A22
+
+/* On chip oscillator circuits */
+#define FRQCR		0xFFFE0010
+#define MCLKCR		0xFFFE0410
+/* Watchdog timer */
+#define WTCNT		0xFFFE0002
+#define WTCSR		0xFFFE0000
+
+#endif	/* _ASM_CPU_SH7206_H_ */