* [U-Boot] [PATCH] sh: Add a flag which controls the DDR ECC mode of sh7757lcr
@ 2011-10-31 4:22 Nobuhiro Iwamatsu
2011-10-31 7:36 ` Yoshihiro Shimoda
0 siblings, 1 reply; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2011-10-31 4:22 UTC (permalink / raw)
To: u-boot
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: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
CC: "Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>
---
board/renesas/sh7757lcr/lowlevel_init.S | 3 ++-
include/configs/sh7757lcr.h | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/board/renesas/sh7757lcr/lowlevel_init.S b/board/renesas/sh7757lcr/lowlevel_init.S
index ab1aa49..5090fd0 100644
--- a/board/renesas/sh7757lcr/lowlevel_init.S
+++ b/board/renesas/sh7757lcr/lowlevel_init.S
@@ -326,12 +326,13 @@ PC_MASK: .long 0x20000000
/* step 26 */
wait_DBCMD
+#if defined(CONFIG_SH7757LCR_DDR_ECC)
/* enable DDR-ECC */
write32 ECD_ECDEN_A, ECD_ECDEN_D
write32 ECD_INTSR_A, ECD_INTSR_D
write32 ECD_SPACER_A, ECD_SPACER_D
write32 ECD_MCR_A, ECD_MCR_D
-
+#endif
bra exit_ddr
nop
diff --git a/include/configs/sh7757lcr.h b/include/configs/sh7757lcr.h
index 63b39d6..40fafc2 100644
--- a/include/configs/sh7757lcr.h
+++ b/include/configs/sh7757lcr.h
@@ -31,6 +31,7 @@
#define CONFIG_SH_32BIT 1
#define CONFIG_CPU_SH7757 1
#define CONFIG_SH7757LCR 1
+#define CONFIG_SH7757LCR_DDR_ECC 1
#define CONFIG_SYS_TEXT_BASE 0x8ef80000
#define CONFIG_SYS_LDSCRIPT "board/renesas/sh7757lcr/u-boot.lds"
--
1.7.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] sh: Add a flag which controls the DDR ECC mode of sh7757lcr
2011-10-31 4:22 [U-Boot] [PATCH] sh: Add a flag which controls the DDR ECC mode of sh7757lcr Nobuhiro Iwamatsu
@ 2011-10-31 7:36 ` Yoshihiro Shimoda
0 siblings, 0 replies; 2+ messages in thread
From: Yoshihiro Shimoda @ 2011-10-31 7:36 UTC (permalink / raw)
To: u-boot
Hi,
2011/10/31 13:22, Nobuhiro Iwamatsu wrote:
> 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: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
> CC: "Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>
Thank you for the patch.
Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thanks,
Yoshihiro Shimoda
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-31 7:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-31 4:22 [U-Boot] [PATCH] sh: Add a flag which controls the DDR ECC mode of sh7757lcr Nobuhiro Iwamatsu
2011-10-31 7:36 ` Yoshihiro Shimoda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox