diff mbox

[U-Boot,06/10] ddr: altera: Remove unnecessary ODT mode config

Message ID 1459994646-11013-6-git-send-email-marex@denx.de
State Accepted
Commit f3f777cdf00433866b1178e23a9a99e2eaf7d89e
Delegated to: Marek Vasut
Headers show

Commit Message

Marek Vasut April 7, 2016, 2:04 a.m. UTC
There is no point in resetting the ODT setting if the write test
failed, since the code will always retry the calibration and thus
reconfigure the ODT anyway OR the code will fail calibration and
halt.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Chin Liang See <clsee@altera.com>
---
 drivers/ddr/altera/sequencer.c | 1 -
 1 file changed, 1 deletion(-)

Comments

George Broz April 8, 2016, 10:14 p.m. UTC | #1
On 6 April 2016 at 19:04, Marek Vasut <marex@denx.de> wrote:
> There is no point in resetting the ODT setting if the write test
> failed, since the code will always retry the calibration and thus
> reconfigure the ODT anyway OR the code will fail calibration and
> halt.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> Cc: Chin Liang See <clsee@altera.com>
> ---
>  drivers/ddr/altera/sequencer.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c
> index 6bf75ba..254b130 100644
> --- a/drivers/ddr/altera/sequencer.c
> +++ b/drivers/ddr/altera/sequencer.c
> @@ -1207,7 +1207,6 @@ rw_mgr_mem_calibrate_write_test(const u32 rank_bgn, const u32 write_group,
>                            *bit_chk == param->write_correct_mask);
>                 return *bit_chk == param->write_correct_mask;
>         } else {
> -               set_rank_and_odt_mask(0, RW_MGR_ODT_MODE_OFF);
>                 debug_cond(DLEVEL == 2,
>                            "write_test(%u,%u,ONE) : %u != %i => %i\n",
>                            write_group, use_dm, *bit_chk, 0, *bit_chk != 0);
> --
> 2.7.0
>

Tested on: SoCKit, DE0_Nano_SoC
Tested-by: George Broz <brozgeo at gmail.com>
diff mbox

Patch

diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c
index 6bf75ba..254b130 100644
--- a/drivers/ddr/altera/sequencer.c
+++ b/drivers/ddr/altera/sequencer.c
@@ -1207,7 +1207,6 @@  rw_mgr_mem_calibrate_write_test(const u32 rank_bgn, const u32 write_group,
 			   *bit_chk == param->write_correct_mask);
 		return *bit_chk == param->write_correct_mask;
 	} else {
-		set_rank_and_odt_mask(0, RW_MGR_ODT_MODE_OFF);
 		debug_cond(DLEVEL == 2,
 			   "write_test(%u,%u,ONE) : %u != %i => %i\n",
 			   write_group, use_dm, *bit_chk, 0, *bit_chk != 0);