From 3ed81645874413d31c5012cb958abd3bc5008b0c Mon Sep 17 00:00:00 2001 From: Nobuhiro Iwamatsu Date: Mon, 31 Oct 2011 13:16:02 +0900 Subject: 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: Nobuhiro Iwamatsu CC: "Yoshihiro Shimoda" Acked-by: "Yoshihiro Shimoda" Signed-off-by: Nobuhiro Iwamatsu --- board/renesas/sh7757lcr/lowlevel_init.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'board/renesas/sh7757lcr') diff --git a/board/renesas/sh7757lcr/lowlevel_init.S b/board/renesas/sh7757lcr/lowlevel_init.S index ab1aa494ab..5090fd093c 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 -- cgit v1.2.3