arm: mvebu: Make ECC support configurable on Armada XP
[oweals/u-boot.git] / drivers / ddr / marvell / axp / ddr3_axp_config.h
index a6720442ffae5d06c7f9ddd3d4fa8b4e01b5b010..25c34fb01151b9c5c588e597d5e4f909b58ff14e 100644 (file)
  * DDR3_TRAINING_DEBUG - Debug prints of internal code
  */
 #define DDR_TARGET_FABRIC                      5
+/* Only enable ECC if the board selects it */
+#ifdef CONFIG_BOARD_ECC_SUPPORT
 #define DRAM_ECC                               1
+#else
+#define DRAM_ECC                               0
+#endif
 
 #ifdef MV_DDR_32BIT
 #define BUS_WIDTH                               32