Skip to content

Commit 6a5ae5a

Browse files
SamulKyullYuzukiTsuru
authored andcommitted
fix build fail
1 parent 5216df1 commit 6a5ae5a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • board/radxa-cubie-a7a/hello_world

board/radxa-cubie-a7a/hello_world/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <log.h>
99

1010
#include <common.h>
11+
#include <mmu.h>
1112

1213
#include <mmc/sys-sdhci.h>
1314

@@ -70,13 +71,12 @@ int main(void) {
7071

7172
pmu_axp8191_dump(&i2c_pmu);
7273

73-
uint32_t dram_size = sunxi_dram_init(dram_para);
74-
arm32_mmu_enable(SDRAM_BASE, dram_size);
74+
sunxi_dram_init(NULL);
7575

76-
printk_error("Detected DRAM size: %u MB\n", dram_size);
77-
7876
printk_info("Hello World!\n");
7977

78+
init_DRAM(0, dram_para);
79+
8080
syterkit_shell_attach(commands);
8181

8282
abort();

0 commit comments

Comments
 (0)