Prechádzať zdrojové kódy

bsp: cviteK: update board init for aarch64

When compiling CV18xx_arch64, have a error:
can not find "rt_fdt_commit_memregion_early"

Analysis: b785ef9 ("[libcpu][aarch64]memory setup using memblock ")
no longer support  "rt_fdt_commit_memregion_early", become use
"rt_memblock_reserve_memory"

Solution: Refer to the bsp/qemu-virt64-aarch64/drivers/board.c
delete "rt_fdt_commit_memregion_early"

Signed-off-by: Shicheng Chu <1468559561@qq.com>
Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
Z8MAN8 1 rok pred
rodič
commit
84eea6c654
1 zmenil súbory, kde vykonal 0 pridanie a 7 odobranie
  1. 0 7
      bsp/cvitek/cv18xx_aarch64/board/board.c

+ 0 - 7
bsp/cvitek/cv18xx_aarch64/board/board.c

@@ -79,13 +79,6 @@ void rt_hw_board_init(void)
 #else
 void rt_hw_board_init(void)
 {
-    rt_fdt_commit_memregion_early(&(rt_region_t)
-    {
-        .name  = "memheap",
-        .start = (rt_size_t)rt_kmem_v2p((void *)HEAP_BEGIN),
-        .end   = (rt_size_t)rt_kmem_v2p((void *)HEAP_END),
-    }, RT_TRUE);
-
     rt_hw_common_setup();
 }
 #endif /* RT_USING_OFW */