]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ddr: altera: silence PHY calibration unless in debug mode
authorGoldschmidt Simon <sgoldschmidt@de.pepperl-fuchs.com>
Thu, 25 Jan 2018 06:04:44 +0000 (06:04 +0000)
committerMarek Vasut <marex@denx.de>
Thu, 25 Jan 2018 08:59:37 +0000 (09:59 +0100)
This driver has been using printf() including filename since it was
added. Convert to using debug() instead.

Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
drivers/ddr/altera/sequencer.c

index 6c6bd90e941814f873893392f6fb1207382ea79a..42e87b50d3e546b81d2e4726dfe5c9a4720ae342 100644 (file)
@@ -3534,7 +3534,7 @@ static void debug_mem_calibrate(int pass)
        u32 debug_info;
 
        if (pass) {
-               printf("%s: CALIBRATION PASSED\n", __FILE__);
+               debug("%s: CALIBRATION PASSED\n", __FILE__);
 
                gbl->fom_in /= 2;
                gbl->fom_out /= 2;
@@ -3553,7 +3553,7 @@ static void debug_mem_calibrate(int pass)
                writel(debug_info, &phy_mgr_cfg->cal_debug_info);
                writel(PHY_MGR_CAL_SUCCESS, &phy_mgr_cfg->cal_status);
        } else {
-               printf("%s: CALIBRATION FAILED\n", __FILE__);
+               debug("%s: CALIBRATION FAILED\n", __FILE__);
 
                debug_info = gbl->error_stage;
                debug_info |= gbl->error_substage << 8;
@@ -3570,7 +3570,7 @@ static void debug_mem_calibrate(int pass)
                writel(debug_info, &sdr_reg_file->failing_stage);
        }
 
-       printf("%s: Calibration complete\n", __FILE__);
+       debug("%s: Calibration complete\n", __FILE__);
 }
 
 /**
@@ -3741,7 +3741,7 @@ int sdram_calibration_full(void)
 
        initialize_tracking();
 
-       printf("%s: Preparing to start memory calibration\n", __FILE__);
+       debug("%s: Preparing to start memory calibration\n", __FILE__);
 
        debug("%s:%d\n", __func__, __LINE__);
        debug_cond(DLEVEL >= 1,