Skip to contentSkip to conversation

74xx_7xx: CPCI750: Add ECC support on esd CPCI-CPU/750 board

PATCH New Stefan Roese 2 participants 2 messages Apr 13, 2010 – May 5, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 74xx_7xx: CPCI750: Add ECC support on esd CPCI-CPU/750 board

From: Reinhard Arlt <[email protected]>

Add ECC support for DDR RAM for MV64360 on esd CPCI-CPU/750 board.

This patch also adds the "pldver" command to display the CPLD revision.

---
 board/esd/cpci750/cpci750.c    |   12 +++
 board/esd/cpci750/sdram_init.c |  151 ++++++++++++++++++++++++++++++++++++++--
 include/configs/CPCI750.h      |    4 +-
 3 files changed, 159 insertions(+), 8 deletions(-)
board/esd/cpci750/cpci750.c +12 -0
index 2ae4cbd..a199d46 100644
@@ -1090,3 +1090,15 @@ U_BOOT_CMD(
 	"Show Marvell strapping register",
 	"Show Marvell strapping register (ResetSampleLow ResetSampleHigh)"
 );
+
+int do_pldver(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+{
+	printf("PLD version:0x%02x\n", in_8((void *)CONFIG_SYS_PLD_VER));
+
+	return 0;
+}
+
+U_BOOT_CMD(
+	pldver, 1, 1, do_pldver,
+	"Show PLD version",
+	"Show PLD version)");
board/esd/cpci750/sdram_init.c +144 -7

205 lines not on this page · raw message

include/configs/CPCI750.h +3 -1
index d516c3c..1c8c68b 100644
@@ -59,7 +59,7 @@
 
 #define CONFIG_BAUDRATE		9600	/* console baudrate = 9600	*/
 
-#undef	CONFIG_ECC			/* enable ECC support */
+#define CONFIG_MV64360_ECC		/* enable ECC support */
 
 #define CONFIG_HIGH_BATS	1	/* High BATs supported */
 
@@ -628,5 +628,7 @@
 #define CONFIG_SYS_BOARD_ASM_INIT	1
 
 #define CPCI750_SLAVE_TEST	(((in8(0xf0300000) & 0x80) == 0) ? 0 : 1)
+#define CPCI750_ECC_TEST	(((in8(0xf0300000) & 0x02) == 0) ? 1 : 0)
+#define CONFIG_SYS_PLD_VER	0xf0e00000
 
 #endif	/* __CONFIG_H */
Signature · 1 line
1.7.0.5
#1 lore raw

PATCH 1/1 74xx_7xx: CPCI750: Add ECC support on esd CPCI-CPU/750 board

Dear Stefan Roese,

Quoted 7 lines · In message <[email protected]> you wrote:

From: Reinhard Arlt <[email protected]>

Add ECC support for DDR RAM for MV64360 on esd CPCI-CPU/750 board.

This patch also adds the "pldver" command to display the CPLD revision.

Quoted 7 lines
---
 board/esd/cpci750/cpci750.c    |   12 +++
 board/esd/cpci750/sdram_init.c |  151 ++++++++++++++++++++++++++++++++++++++--
 include/configs/CPCI750.h      |    4 +-
 3 files changed, 159 insertions(+), 8 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
He'd heard her use that sweet, innocent  tone  of  voice  before.  It
meant that, pretty soon, there was going to be trouble.
                                        - Terry Pratchett, _Truckers_