diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index b9fb015c8..6b334853a 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -222,11 +222,41 @@ void sdrwloff(void) ddrphy_wlevel_en_write(0); } -static int write_level(int *delay, int *high_skew) +static void write_level_scan(void) { int i, j; int dq_address; unsigned char dq; + + printf("Write leveling scan:\n"); + + sdrwlon(); + cdelay(100); + for(i=0;i