summaryrefslogtreecommitdiff
path: root/src/soc/imgtec/pistachio/romstage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/imgtec/pistachio/romstage.c')
-rw-r--r--src/soc/imgtec/pistachio/romstage.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/soc/imgtec/pistachio/romstage.c b/src/soc/imgtec/pistachio/romstage.c
index 3fcf23d461..a10db1682f 100644
--- a/src/soc/imgtec/pistachio/romstage.c
+++ b/src/soc/imgtec/pistachio/romstage.c
@@ -21,9 +21,17 @@
#include <program_loading.h>
#include <console/console.h>
+#include <halt.h>
+#include <soc/ddr_init.h>
void main(void)
{
+ int error;
console_init();
- run_ramstage();
+ error = init_ddr2();
+
+ if (!error) {
+ run_ramstage();
+ }
+ halt();
}