summaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/a38x/ddr3_init.c
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2018-05-10 13:28:28 +1200
committerStefan Roese <sr@denx.de>2018-05-14 10:01:56 +0200
commit00a7767766ace1f3ca3de7f9d44e145b9092bbad (patch)
treef059b8cba5f069b96a9941d823f95f18504cc9cc /drivers/ddr/marvell/a38x/ddr3_init.c
parentc4195d5553595f12a6f5e943c9ee5e68097d7c72 (diff)
ARM: mvebu: a38x: remove some unused code
No in-tree code defines SUPPORT_STATIC_DUNIT_CONFIG or STATIC_ALGO_SUPPORT. Remove ddr3_a38x_mc_static.h and use unifdef to remove unused sections in the rest of the ddr/marvell/a38x code. Signed-off-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/ddr/marvell/a38x/ddr3_init.c')
-rw-r--r--drivers/ddr/marvell/a38x/ddr3_init.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/ddr/marvell/a38x/ddr3_init.c b/drivers/ddr/marvell/a38x/ddr3_init.c
index 1c5b1f75ca..73d984ba66 100644
--- a/drivers/ddr/marvell/a38x/ddr3_init.c
+++ b/drivers/ddr/marvell/a38x/ddr3_init.c
@@ -59,20 +59,6 @@ struct dram_modes {
};
struct dram_modes ddr_modes[] = {
-#ifdef SUPPORT_STATIC_DUNIT_CONFIG
- /* Conf name, CPUFreq, Fab_freq, Chip ID, Chip/Board, MC regs*/
-#ifdef CONFIG_CUSTOMER_BOARD_SUPPORT
- {"a38x_customer_0_800", DDR_FREQ_800, 0, 0x0, A38X_CUSTOMER_BOARD_ID0,
- ddr3_customer_800},
- {"a38x_customer_1_800", DDR_FREQ_800, 0, 0x0, A38X_CUSTOMER_BOARD_ID1,
- ddr3_customer_800},
-#else
- {"a38x_533", DDR_FREQ_533, 0, 0x0, MARVELL_BOARD, ddr3_a38x_533},
- {"a38x_667", DDR_FREQ_667, 0, 0x0, MARVELL_BOARD, ddr3_a38x_667},
- {"a38x_800", DDR_FREQ_800, 0, 0x0, MARVELL_BOARD, ddr3_a38x_800},
- {"a38x_933", DDR_FREQ_933, 0, 0x0, MARVELL_BOARD, ddr3_a38x_933},
-#endif
-#endif
};
#endif /* defined(CONFIG_ARMADA_38X) */
@@ -91,9 +77,6 @@ static char *ddr_type = "DDR3";
*/
u8 generic_init_controller = 1;
-#ifdef SUPPORT_STATIC_DUNIT_CONFIG
-static u32 ddr3_get_static_ddr_mode(void);
-#endif
static int ddr3_hws_tune_training_params(u8 dev_num);
/* device revision */
@@ -342,18 +325,6 @@ int ddr3_init(void)
/* Set X-BAR windows for the training sequence */
ddr3_save_and_set_training_windows(win);
-#ifdef SUPPORT_STATIC_DUNIT_CONFIG
- /*
- * Load static controller configuration (in case dynamic/generic init
- * is not enabled
- */
- if (generic_init_controller == 0) {
- ddr3_tip_init_specific_reg_config(0,
- ddr_modes
- [ddr3_get_static_ddr_mode
- ()].regs);
- }
-#endif
/* Tune training algo paramteres */
status = ddr3_hws_tune_training_params(0);