summaryrefslogtreecommitdiff
path: root/board/sipeed
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2021-04-09 05:13:10 +0300
committerLeo Yu-Chi Liang <ycliang@andestech.com>2021-05-14 11:20:49 +0300
commit23058052de302af1e5fcc0c22a8dea97b25d61cd (patch)
tree84d9e8fe2b4beaa1084e0c466c8802b6c94977e4 /board/sipeed
parent2eebe5b373ffa14671279cdeae1d1eedbfd2b9fb (diff)
downloadu-boot-23058052de302af1e5fcc0c22a8dea97b25d61cd.tar.xz
riscv: Enable AI ram on K210
We just need to initialize all the clocks pre-reloc. The clock driver creates a bunch of devices, so we need to increase the pre-reloc malloc arena. Signed-off-by: Sean Anderson <seanga2@gmail.com>
Diffstat (limited to 'board/sipeed')
-rw-r--r--board/sipeed/maix/maix.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/board/sipeed/maix/maix.c b/board/sipeed/maix/maix.c
index cbcb23cf5c..6e582911f8 100644
--- a/board/sipeed/maix/maix.c
+++ b/board/sipeed/maix/maix.c
@@ -14,7 +14,7 @@ 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" };
@@ -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;
+}