Hack to fix #136.
authorTim 'mithro' Ansell <me@mith.ro>
Sun, 16 Dec 2018 22:40:10 +0000 (14:40 -0800)
committerTim 'mithro' Ansell <me@mith.ro>
Sun, 16 Dec 2018 22:40:10 +0000 (14:40 -0800)
litex/soc/software/bios/sdram.c

index 52532aa46ee0c666ff70be725e08f1f186c197af..fbd9afa8a0b66b62533f2051a144baa1eac5101b 100644 (file)
 
 #include "sdram.h"
 
+// FIXME(hack): If we don't have main ram, just target the sram instead.
+#ifndef MAIN_RAM_BASE
+#define MAIN_RAM_BASE SRAM_BASE
+#endif
+
 static void cdelay(int i)
 {
        while(i > 0) {