Skip to content

Commit 29d932d

Browse files
committed
bsp: k230: use sysctl to reboot the board
Signed-off-by: Wang Chen <[email protected]>
1 parent d917446 commit 29d932d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bsp/k230/board/board.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
#include <sbi.h>
2121

22+
#include "sysctl_boot.h"
23+
2224
#ifdef RT_USING_SMART
2325
#include <mmu.h>
2426
#include "page.h"
@@ -113,7 +115,8 @@ void rt_hw_board_init(void)
113115

114116
void rt_hw_cpu_reset(void)
115117
{
116-
sbi_shutdown();
118+
// sbi_shutdown();
119+
sysctl_boot_reset_soc();
117120
while(1);
118121
}
119122
MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_reset, reboot, reset machine);

0 commit comments

Comments
 (0)