sh: Add support SH7780
PATCH 1/1 sh: Add support SH7780
SH7780 is CPU of Renesas Technology.
This CPU has
- CPU clock 400MHz
- PCI support
- DDR-SDRAM controller
- etc ...
Signed-off-by Yusuke Goda <[email protected]>
--- drivers/serial/serial_sh.c | 14 +- include/asm-sh/cpu_sh4.h | 4 +- include/asm-sh/cpu_sh7780.h | 503 +++++++++++++++++++++++++++++++++++++++++++ include/asm-sh/processor.h | 3 +- 4 files changed, 516 insertions(+), 8 deletions(-) create mode 100644 include/asm-sh/cpu_sh7780.h
drivers/serial/serial_sh.c +8 -6
@@ -46,26 +46,28 @@#define SCFRDR (vu_char *)(SCIF_BASE + 0x14)#endif -#if defined(CONFIG_SH4A ) +#if defined(CONFIG_CPU_SH7780 ) || \ + defined(CONFIG_CPU_SH7785 )#define SCRFDR (vu_short *)(SCIF_BASE + 0x20)#define SCSPTR (vu_short *)(SCIF_BASE + 0x24)#define SCLSR (vu_short *)(SCIF_BASE + 0x28)#define SCRER (vu_short *)(SCIF_BASE + 0x2C)#define LSR_ORER 1 -#elif defined (CONFIG_SH4 ) +#elif defined(CONFIG_CPU_SH7750 ) || \ + defined(CONFIG_CPU_SH7722 )#define SCSPTR (vu_short *)(SCIF_BASE + 0x20)#define SCLSR (vu_short *)(SCIF_BASE + 0x24)#define LSR_ORER 1 -#elif defined (CONFIG_SH3 ) -#ifdef CONFIG_CPU_SH7720 /* SH7720 specific */ +#elif defined(CONFIG_CPU_SH7720 )#define SCLSR (vu_short *)(SCIF_BASE + 0x24)#define LSR_ORER 0x0200 -#else +#elif defined(CONFIG_CPU_SH7710 ) + defined(CONFIG_CPU_SH7712)#define SCLSR SCFSR/* SCSSR */ #define LSR_ORER 1#endif -#endif +/* SCBRR register value setting */ #if defined(CONFIG_CPU_SH7720 )#define SCBRR_VALUE (bps, clk) (((clk*2)+16*bps)/(32*bps)-1)#else /* Generic SuperH */
include/asm-sh/cpu_sh4.h +3 -1
@@ -1,5 +1,5 @@/* -* (C) Copyright 2007 Nobuhiro Iwamatsu <[email protected]> +* (C) Copyright 2007,2008 Nobuhiro Iwamatsu <[email protected]> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as
@@ -34,6 +34,8 @@#include <asm/cpu_sh7750.h> #elif defined (CONFIG_CPU_SH7722 )#include <asm/cpu_sh7722.h> +#elif defined (CONFIG_CPU_SH7780 ) +#include <asm/cpu_sh7780.h> #else #error "Unknown SH4 variant"#endif
include/asm-sh/cpu_sh7780.h new file +503 -0
503 lines not on this page · raw message
include/asm-sh/processor.h +2 -1
@@ -2,7 +2,8 @@#define _ASM_SH_PROCESSOR_H_#if definedCONFIG_SH3 # include <asm/cpu_sh3.h> -#elif defined (CONFIG_SH4 ) +#elif defined (CONFIG_SH4 ) || \ + defined (CONFIG_SH4A )# include <asm/cpu_sh4.h> #endif #endif
Nobuhiro Iwamatsu
AppliedPATCH 1/1 sh: Add support SH7780
Quoted 8 lines · On Wed, 05 Mar 2008 17:01:11 +0900 "goda.yusuke" <[email protected]>…
SH7780 is CPU of Renesas Technology.
This CPU has
- CPU clock 400MHz
- PCI support
- DDR-SDRAM controller
- etc ...Signed-off-by Yusuke Goda <[email protected]>
Applied, thanks.
I put testing branch.
regards,
Nobuhiro
Signature · 5 lines
Nobuhiro Iwamatsu hemamu at t-base.ne.jp iwamatsu at debian.or.jp GPG ID : 3170EBE9