summaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/axp/ddr3_axp_config.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-01-14 11:23:05 -0500
committerTom Rini <trini@konsulko.com>2016-01-14 11:23:05 -0500
commitf46c25583a73042edf432b209ee4b93bc3f7e762 (patch)
treea7cbd8afde1b0cbf86a9c8150cbd737df3ee82c9 /drivers/ddr/marvell/axp/ddr3_axp_config.h
parentdb18f548cb7b5ff99223b66eac1966eb45230817 (diff)
parentf822d8578ba395d9af1cc315a2fb87b1eed3d355 (diff)
Merge git://www.denx.de/git/u-boot-marvell
Conflicts: arch/arm/Kconfig Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/ddr/marvell/axp/ddr3_axp_config.h')
-rw-r--r--drivers/ddr/marvell/axp/ddr3_axp_config.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/ddr/marvell/axp/ddr3_axp_config.h b/drivers/ddr/marvell/axp/ddr3_axp_config.h
index a6720442ffa..8549fe8baba 100644
--- a/drivers/ddr/marvell/axp/ddr3_axp_config.h
+++ b/drivers/ddr/marvell/axp/ddr3_axp_config.h
@@ -44,9 +44,14 @@
* 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
+#ifdef CONFIG_DDR_32BIT
#define BUS_WIDTH 32
#else
#define BUS_WIDTH 64