Commit 7e1e59a7b7da45361761ab1439c2751f4cae4163

Authored by Phil Sutter
Committed by Stefan Roese
1 parent 3c1496cd4d

axp: Fix debugging support in DDR3 write leveling

If MV_DEBUG_WL is defined, DEBUG_WL_S and DEBUG_WL_D macros are missing.
In addition to that, get rid of debug output printing non-existent
counter variable.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Stefan Roese <sr@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/ddr/marvell/axp/ddr3_write_leveling.c
... ... @@ -22,6 +22,8 @@
22 22 DEBUG_WL_FULL_S(s); DEBUG_WL_FULL_D(d, l); DEBUG_WL_FULL_S("\n")
23 23  
24 24 #ifdef MV_DEBUG_WL
  25 +#define DEBUG_WL_S(s) puts(s)
  26 +#define DEBUG_WL_D(d, l) printf("%x", d)
25 27 #define DEBUG_RL_S(s) \
26 28 debug_cond(ddr3_get_log_level() >= MV_LOG_LEVEL_2, "%s", s)
27 29 #define DEBUG_RL_D(d, l) \
... ... @@ -1229,8 +1231,6 @@
1229 1231 DEBUG_WL_FULL_D((u32) phase, 1);
1230 1232 DEBUG_WL_FULL_S(", Delay = ");
1231 1233 DEBUG_WL_FULL_D((u32) delay, 1);
1232   - DEBUG_WL_FULL_S(", Counter = ");
1233   - DEBUG_WL_FULL_D((u32) i, 1);
1234 1234 DEBUG_WL_FULL_S("\n");
1235 1235  
1236 1236 /* Drive DQS high for one cycle - All data PUPs */