summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-07-18 03:36:09 +0200
committerMarek Vasut <marex@denx.de>2015-08-08 14:14:17 +0200
commit93dcfd8982d5a5f7ef4f017da505f615cf35f3c9 (patch)
treeadc7110a9203fcb6b08a83f40a00d3d27dac5879
parentb6cb7f9edddf8f812b9d79fe1324b66348d05254 (diff)
downloadtalos-obmc-uboot-93dcfd8982d5a5f7ef4f017da505f615cf35f3c9.tar.gz
talos-obmc-uboot-93dcfd8982d5a5f7ef4f017da505f615cf35f3c9.zip
ddr: altera: Zap rw_mgr_mem_calibrate_read_test_patterns_all_ranks()
This function is called from one single place and it's sole purpose is to call one single function with slightly modified arguments. Zap this function to skip this useless intermediate step. Signed-off-by: Marek Vasut <marex@denx.de>
-rw-r--r--drivers/ddr/altera/sequencer.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c
index a4cba69371..e17e6012b0 100644
--- a/drivers/ddr/altera/sequencer.c
+++ b/drivers/ddr/altera/sequencer.c
@@ -1107,13 +1107,6 @@ static uint32_t rw_mgr_mem_calibrate_read_test_patterns(uint32_t rank_bgn,
return *bit_chk == param->read_correct_mask;
}
-static uint32_t rw_mgr_mem_calibrate_read_test_patterns_all_ranks
- (uint32_t group, uint32_t num_tries, uint32_t *bit_chk)
-{
- return rw_mgr_mem_calibrate_read_test_patterns(0, group,
- num_tries, bit_chk, 1);
-}
-
/**
* rw_mgr_mem_calibrate_read_load_patterns() - Load up the patterns for read test
* @rank_bgn: Rank number
@@ -2230,8 +2223,8 @@ static int rw_mgr_mem_calibrate_guaranteed_write(const u32 rw_group,
* Altera EMI_RM 2015.05.04 :: Figure 1-26
* Back-to-Back reads of the patterns used for calibration.
*/
- ret = rw_mgr_mem_calibrate_read_test_patterns_all_ranks(rw_group, 1,
- &bit_chk);
+ ret = rw_mgr_mem_calibrate_read_test_patterns(0, rw_group, 1,
+ &bit_chk, 1);
if (!ret) { /* FIXME: 0 means failure in this old code :-( */
debug_cond(DLEVEL == 1,
"%s:%d Guaranteed read test failed: g=%u p=%u\n",
OpenPOWER on IntegriCloud