mirror of
https://xff.cz/git/u-boot/
synced 2025-10-26 16:13:55 +01:00
sh: Add Renesas rsk7264 board
The rsk7264 (also know as rsk2+sh7264) is an SH2A based board with 64MB NAND flash and 64MB SDRAM. It is very similar to the rsk7203 board. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
committed by
Nobuhiro Iwamatsu
parent
fa82f871c8
commit
7fbeb6422d
@@ -33,6 +33,9 @@
|
||||
#define scif0_enable() do {\
|
||||
writeb(readb(STBCR4) & ~0x80, STBCR4);\
|
||||
} while (0)
|
||||
#define scif3_enable() do {\
|
||||
writeb(readb(STBCR4) & ~0x10, STBCR4);\
|
||||
} while (0)
|
||||
|
||||
int checkcpu(void)
|
||||
{
|
||||
@@ -47,7 +50,11 @@ int checkcpu(void)
|
||||
int cpu_init(void)
|
||||
{
|
||||
/* SCIF enable */
|
||||
#if defined(CONFIG_CONS_SCIF3)
|
||||
scif3_enable();
|
||||
#else
|
||||
scif0_enable();
|
||||
#endif
|
||||
/* CMT clock enable */
|
||||
cmt_clock_enable() ;
|
||||
return 0;
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
|
||||
#if defined(CONFIG_CPU_SH7203)
|
||||
# include <asm/cpu_sh7203.h>
|
||||
#elif defined(CONFIG_CPU_SH7264)
|
||||
# include <asm/cpu_sh7264.h>
|
||||
#else
|
||||
# error "Unknown SH2 variant"
|
||||
#endif
|
||||
|
||||
41
arch/sh/include/asm/cpu_sh7264.h
Normal file
41
arch/sh/include/asm/cpu_sh7264.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef _ASM_CPU_SH7264_H_
|
||||
#define _ASM_CPU_SH7264_H_
|
||||
|
||||
/* Cache */
|
||||
#define CCR1 0xFFFC1000
|
||||
#define CCR CCR1
|
||||
|
||||
/* PFC */
|
||||
#define PACR 0xA4050100
|
||||
#define PBCR 0xA4050102
|
||||
#define PCCR 0xA4050104
|
||||
#define PETCR 0xA4050106
|
||||
|
||||
/* Port Data Registers */
|
||||
#define PADR 0xA4050120
|
||||
#define PBDR 0xA4050122
|
||||
#define PCDR 0xA4050124
|
||||
|
||||
/* BSC */
|
||||
|
||||
/* SDRAM controller */
|
||||
|
||||
/* SCIF */
|
||||
#define SCSMR_3 0xFFFE9800
|
||||
#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
|
||||
|
||||
/* On chip oscillator circuits */
|
||||
#define FRQCR 0xA415FF80
|
||||
#define WTCNT 0xA415FF84
|
||||
#define WTCSR 0xA415FF86
|
||||
|
||||
#endif /* _ASM_CPU_SH7264_H_ */
|
||||
Reference in New Issue
Block a user