projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa6fef1
)
Hack to fix #136.
author
Tim 'mithro' Ansell
<me@mith.ro>
Sun, 16 Dec 2018 22:40:10 +0000
(14:40 -0800)
committer
Tim 'mithro' Ansell
<me@mith.ro>
Sun, 16 Dec 2018 22:40:10 +0000
(14:40 -0800)
litex/soc/software/bios/sdram.c
patch
|
blob
|
history
diff --git
a/litex/soc/software/bios/sdram.c
b/litex/soc/software/bios/sdram.c
index 52532aa46ee0c666ff70be725e08f1f186c197af..fbd9afa8a0b66b62533f2051a144baa1eac5101b 100644
(file)
--- a/
litex/soc/software/bios/sdram.c
+++ b/
litex/soc/software/bios/sdram.c
@@
-12,6
+12,11
@@
#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) {