Skip to content
Snippets Groups Projects
Commit 3ed81645 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Nobuhiro Iwamatsu
Browse files

sh: Add a flag which controls the DDR ECC mode of sh7757lcr


When DDR-ECC is effective, the physical memory which can be used
reduces this boardby half. However, this mode can chenge to disable.
When it was disabled, user can use 512 MB of physical memory.

Signed-off-by: default avatarNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
CC: "Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>
Acked-by: default avatar"Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu@nigauri.org>
parent cb4046c5
No related branches found
No related tags found
No related merge requests found
...@@ -326,12 +326,13 @@ PC_MASK: .long 0x20000000 ...@@ -326,12 +326,13 @@ PC_MASK: .long 0x20000000
/* step 26 */ /* step 26 */
wait_DBCMD wait_DBCMD
#if defined(CONFIG_SH7757LCR_DDR_ECC)
/* enable DDR-ECC */ /* enable DDR-ECC */
write32 ECD_ECDEN_A, ECD_ECDEN_D write32 ECD_ECDEN_A, ECD_ECDEN_D
write32 ECD_INTSR_A, ECD_INTSR_D write32 ECD_INTSR_A, ECD_INTSR_D
write32 ECD_SPACER_A, ECD_SPACER_D write32 ECD_SPACER_A, ECD_SPACER_D
write32 ECD_MCR_A, ECD_MCR_D write32 ECD_MCR_A, ECD_MCR_D
#endif
bra exit_ddr bra exit_ddr
nop nop
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#define CONFIG_SH_32BIT 1 #define CONFIG_SH_32BIT 1
#define CONFIG_CPU_SH7757 1 #define CONFIG_CPU_SH7757 1
#define CONFIG_SH7757LCR 1 #define CONFIG_SH7757LCR 1
#define CONFIG_SH7757LCR_DDR_ECC 1
#define CONFIG_SYS_TEXT_BASE 0x8ef80000 #define CONFIG_SYS_TEXT_BASE 0x8ef80000
#define CONFIG_SYS_LDSCRIPT "board/renesas/sh7757lcr/u-boot.lds" #define CONFIG_SYS_LDSCRIPT "board/renesas/sh7757lcr/u-boot.lds"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment