bios/sdram: add missing #ifdef
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 13 Sep 2018 04:30:37 +0000 (06:30 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 13 Sep 2018 04:30:37 +0000 (06:30 +0200)
litex/soc/software/bios/sdram.c

index 8146228fd804f6096136aba07ba1078a9fa2792c..61f660acb07dc16d6296d8600163edaf1c328840 100644 (file)
@@ -801,8 +801,10 @@ int sdrinit(void)
 #endif
 #endif
        if(!memtest()) {
+#ifdef CSR_DDRPHY_BASE
                /* show scans */
                sdrlevel(0);
+#endif
                return 0;
        }