bios/sdram: fix compilation warning
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 25 Jul 2019 05:46:14 +0000 (07:46 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 25 Jul 2019 05:46:14 +0000 (07:46 +0200)
litex/soc/software/bios/sdram.c

index 0af3e4fc6a0ca2f4e41ae0c85753037ecdaae904..ecf5fe5a14121955bd0f5d2ea8e1dee16856d166 100644 (file)
@@ -255,7 +255,9 @@ void sdrwloff(void)
 }
 
 static void write_delay_rst(int module) {
+#ifdef USDDRPHY
        int i;
+#endif
 
        /* sel module */
        ddrphy_dly_sel_write(1 << module);