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>
This commit is contained in:
Z8MAN8 2024-07-24 19:44:52 +08:00
parent 8dc166b16c
commit 84eea6c654
1 changed files with 0 additions and 7 deletions

View File

@ -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 */