diff options
author | Marek Vasut <marex@denx.de> | 2015-07-18 04:20:26 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 14:14:18 +0200 |
commit | 9da1d8f5b40ea0d0a53f0760e9fc0d6832cd5ab5 (patch) | |
tree | 75bdee8ee575408d23ea770c2d41952f15df2c37 /drivers/ddr | |
parent | 9059009185319445fc9931091c2ed64ac199e356 (diff) |
ddr: altera: Clean up rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase_sweep_dq_in_delay() part 2
The read_group and write_group params have the same value for all (one)
invocations of this function, just merge them into a single param.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/ddr')
-rw-r--r-- | drivers/ddr/altera/sequencer.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c index c33a12a8a4..a1be7357e3 100644 --- a/drivers/ddr/altera/sequencer.c +++ b/drivers/ddr/altera/sequencer.c @@ -1772,7 +1772,7 @@ static uint32_t rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase(uint32_t grp) */ static int rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase_sweep_dq_in_delay -(uint32_t write_group, uint32_t read_group, uint32_t test_bgn) +(const u32 rw_group, const u32 test_bgn) { /* We start at zero, so have one less dq to devide among */ const u32 delay_step = IO_IO_IN_DELAY_MAX / @@ -1780,8 +1780,7 @@ rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase_sweep_dq_in_delay int found; u32 i, p, d, r; - debug("%s:%d (%u,%u,%u)\n", __func__, __LINE__, - write_group, read_group, test_bgn); + debug("%s:%d (%u,%u)\n", __func__, __LINE__, rw_group, test_bgn); /* Try different dq_in_delays since the DQ path is shorter than DQS. */ for (r = 0; r < RW_MGR_MEM_NUMBER_OF_RANKS; @@ -1790,9 +1789,8 @@ rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase_sweep_dq_in_delay i < RW_MGR_MEM_DQ_PER_READ_DQS; i++, p++, d += delay_step) { debug_cond(DLEVEL == 1, - "%s:%d: g=%u/%u r=%u i=%u p=%u d=%u\n", - __func__, __LINE__, write_group, read_group, - r, i, p, d); + "%s:%d: g=%u r=%u i=%u p=%u d=%u\n", + __func__, __LINE__, rw_group, r, i, p, d); scc_mgr_set_dq_in_delay(p, d); scc_mgr_load_dq(p); @@ -1801,11 +1799,11 @@ rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase_sweep_dq_in_delay writel(0, &sdr_scc_mgr->update); } - found = rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase(read_group); + found = rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase(rw_group); debug_cond(DLEVEL == 1, - "%s:%d: g=%u/%u found=%u; Reseting delay chain to zero\n", - __func__, __LINE__, write_group, read_group, found); + "%s:%d: g=%u found=%u; Reseting delay chain to zero\n", + __func__, __LINE__, rw_group, found); for (r = 0; r < RW_MGR_MEM_NUMBER_OF_RANKS; r += NUM_RANKS_PER_SHADOW_REG) { @@ -2259,7 +2257,7 @@ static int rw_mgr_mem_calibrate_dqs_enable_calibration(const u32 rw_group, * DQS and DQS Eanble Signal Relationships. */ ret = rw_mgr_mem_calibrate_vfifo_find_dqs_en_phase_sweep_dq_in_delay( - rw_group, rw_group, test_bgn); + rw_group, test_bgn); return ret; } |