From: Nobuhiro Iwamatsu Date: Wed, 12 Mar 2008 03:10:28 +0000 (+0900) Subject: sh: Add support SuperH SH7751/SH7751R X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=566933278101c144d75361ea682678a326c1290d;p=u-boot.git sh: Add support SuperH SH7751/SH7751R Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c index 8ee58a06f7..7088c93114 100644 --- a/drivers/serial/serial_sh.c +++ b/drivers/serial/serial_sh.c @@ -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) diff --git a/include/asm-sh/cpu_sh4.h b/include/asm-sh/cpu_sh4.h index 4d9e300b1a..c200ba5a46 100644 --- a/include/asm-sh/cpu_sh4.h +++ b/include/asm-sh/cpu_sh4.h @@ -30,14 +30,15 @@ #define CACHE_OC_NUM_ENTRIES 512 #define CACHE_OC_ENTRY_SHIFT 5 -#if defined (CONFIG_CPU_SH7750) -#include +#if defined (CONFIG_CPU_SH7750) || \ + defined(CONFIG_CPU_SH7751) +# include #elif defined (CONFIG_CPU_SH7722) -#include +# include #elif defined (CONFIG_CPU_SH7780) -#include +# include #else -#error "Unknown SH4 variant" +# error "Unknown SH4 variant" #endif #endif /* _ASM_CPU_SH4_H_ */ diff --git a/include/asm-sh/cpu_sh7750.h b/include/asm-sh/cpu_sh7750.h index bb6461a6bf..3c3c30980a 100644 --- a/include/asm-sh/cpu_sh7750.h +++ b/include/asm-sh/cpu_sh7750.h @@ -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 */