summaryrefslogtreecommitdiff
path: root/board/sipeed/maix/maix.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/sipeed/maix/maix.c')
-rw-r--r--board/sipeed/maix/maix.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/board/sipeed/maix/maix.c b/board/sipeed/maix/maix.c
index cbcb23cf5c2..52e4fee2f0a 100644
--- a/board/sipeed/maix/maix.c
+++ b/board/sipeed/maix/maix.c
@@ -14,10 +14,10 @@ phys_size_t get_effective_memsize(void)
return CONFIG_SYS_SDRAM_SIZE;
}
-int board_init(void)
+static int sram_init(void)
{
int ret, i;
- const char * const banks[] = { "sram0", "sram1", "airam" };
+ const char * const banks[] = { "sram0", "sram1", "aisram" };
ofnode memory;
struct clk clk;
@@ -39,3 +39,13 @@ int board_init(void)
return 0;
}
+
+int board_early_init_f(void)
+{
+ return sram_init();
+}
+
+int board_init(void)
+{
+ return 0;
+}