Skip to content
Snippets Groups Projects
Commit 698ffab2 authored by Stefan Roese's avatar Stefan Roese
Browse files

arm: mvebu: Make ECC support configurable on Armada XP


Currently, ECC support is enabled for all Armada XP boards. So the
DDR3 driver tries to configure the controller with ECC support, even
on boards without ECC. This patch makes this ECC optional which now
can be configured on a board-per-board basis.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Phil Sutter <phil@nwl.cc>
parent bf0db8b8
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,10 @@ ...@@ -33,7 +33,10 @@
#define SAR1_CPU_CORE_MASK 0x00000018 #define SAR1_CPU_CORE_MASK 0x00000018
#define SAR1_CPU_CORE_OFFSET 3 #define SAR1_CPU_CORE_OFFSET 3
/* Only enable ECC if the board selects it */
#ifdef CONFIG_BOARD_ECC_SUPPORT
#define ECC_SUPPORT #define ECC_SUPPORT
#endif
#define NEW_FABRIC_TWSI_ADDR 0x4E #define NEW_FABRIC_TWSI_ADDR 0x4E
#ifdef CONFIG_DB_784MP_GP #ifdef CONFIG_DB_784MP_GP
#define BUS_WIDTH_ECC_TWSI_ADDR 0x4E #define BUS_WIDTH_ECC_TWSI_ADDR 0x4E
......
...@@ -44,7 +44,12 @@ ...@@ -44,7 +44,12 @@
* DDR3_TRAINING_DEBUG - Debug prints of internal code * DDR3_TRAINING_DEBUG - Debug prints of internal code
*/ */
#define DDR_TARGET_FABRIC 5 #define DDR_TARGET_FABRIC 5
/* Only enable ECC if the board selects it */
#ifdef CONFIG_BOARD_ECC_SUPPORT
#define DRAM_ECC 1 #define DRAM_ECC 1
#else
#define DRAM_ECC 0
#endif
#ifdef MV_DDR_32BIT #ifdef MV_DDR_32BIT
#define BUS_WIDTH 32 #define BUS_WIDTH 32
......
...@@ -146,5 +146,6 @@ ...@@ -146,5 +146,6 @@
/* Enable DDR support in SPL (DDR3 training from Marvell bin_hdr) */ /* Enable DDR support in SPL (DDR3 training from Marvell bin_hdr) */
#define CONFIG_SYS_MVEBU_DDR_AXP #define CONFIG_SYS_MVEBU_DDR_AXP
#define CONFIG_SPD_EEPROM 0x4e #define CONFIG_SPD_EEPROM 0x4e
#define CONFIG_BOARD_ECC_SUPPORT /* this board supports ECC */
#endif /* _CONFIG_DB_MV7846MP_GP_H */ #endif /* _CONFIG_DB_MV7846MP_GP_H */
...@@ -108,5 +108,6 @@ ...@@ -108,5 +108,6 @@
/* Enable DDR support in SPL (DDR3 training from Marvell bin_hdr) */ /* Enable DDR support in SPL (DDR3 training from Marvell bin_hdr) */
#define CONFIG_SYS_MVEBU_DDR_AXP #define CONFIG_SYS_MVEBU_DDR_AXP
#define CONFIG_DDR_FIXED_SIZE (1 << 20) /* 1GiB */ #define CONFIG_DDR_FIXED_SIZE (1 << 20) /* 1GiB */
#define CONFIG_BOARD_ECC_SUPPORT /* this board supports ECC */
#endif /* _CONFIG_DB_MV7846MP_GP_H */ #endif /* _CONFIG_DB_MV7846MP_GP_H */
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