Skip to contentSkip to conversation

sh: Add support SuperH SH7751/SH7751R

PATCH New Nobuhiro Iwamatsu 1 participant 1 message Mar 12, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: Add support SuperH SH7751/SH7751R

---
 drivers/serial/serial_sh.c  |    1 +
 include/asm-sh/cpu_sh4.h    |   11 ++++++-----
 include/asm-sh/cpu_sh7750.h |    4 ++--
 3 files changed, 9 insertions(+), 7 deletions(-)
drivers/serial/serial_sh.c +1 -0
index 8ee58a0..7088c93 100644
@@ -55,6 +55,7 @@
 # define LSR_ORER	1
 # define FIFOLEVEL_MASK	0xFF
 #elif defined(CONFIG_CPU_SH7750) || \
+	defined(CONFIG_CPU_SH7751) || \
 	defined(CONFIG_CPU_SH7722)
 # define SCSPTR 	(vu_short *)(SCIF_BASE + 0x20)
 # define SCLSR 	(vu_short *)(SCIF_BASE + 0x24)
include/asm-sh/cpu_sh4.h +6 -5
index 4d9e300..c200ba5 100644
@@ -30,14 +30,15 @@
 #define CACHE_OC_NUM_ENTRIES	512
 #define CACHE_OC_ENTRY_SHIFT	5
 
-#if defined (CONFIG_CPU_SH7750)
-#include <asm/cpu_sh7750.h>
+#if defined (CONFIG_CPU_SH7750) || \
+	defined(CONFIG_CPU_SH7751)
+# include <asm/cpu_sh7750.h>
 #elif defined (CONFIG_CPU_SH7722)
-#include <asm/cpu_sh7722.h>
+# include <asm/cpu_sh7722.h>
 #elif defined (CONFIG_CPU_SH7780)
-#include <asm/cpu_sh7780.h>
+# include <asm/cpu_sh7780.h>
 #else
-#error "Unknown SH4 variant"
+# error "Unknown SH4 variant"
 #endif
 
 #endif	/* _ASM_CPU_SH4_H_ */
include/asm-sh/cpu_sh7750.h +2 -2
index bb6461a..3c3c309 100644
@@ -25,10 +25,10 @@
 
 #ifdef CONFIG_CPU_TYPE_R
 #define CACHE_OC_NUM_WAYS     2
-#define CCR_CACHE_INIT   0x8000090d     /* EMODE,ICI,ICE(16k),OCI,P1-wb,OCE(32k) */
+#define CCR_CACHE_INIT   0x8000090D     /* EMODE,ICI,ICE(16k),OCI,P1-wb,OCE(32k) */
 #else
 #define CACHE_OC_NUM_WAYS     1
-#define CCR_CACHE_INIT   0x0000090b
+#define CCR_CACHE_INIT   0x0000090B
 #endif
 
 /*      OCN     */
Signature · 1 line
1.5.4.3