From: Kongyang Liu Date: Tue, 16 Apr 2024 07:52:39 +0000 (+0800) Subject: board: sophgo: milkv_duo: Bind sysreset driver X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=9986f2172998757cea64a39cad9e59f7f55aa5bd;p=u-boot.git board: sophgo: milkv_duo: Bind sysreset driver Bind cv1800b sysreset driver for Sophgo Milk-V Duo board in board_init function. Signed-off-by: Kongyang Liu Reviewed-by: Leo Yu-Chi Liang --- diff --git a/board/sophgo/milkv_duo/board.c b/board/sophgo/milkv_duo/board.c index eaa47be173..e7e28fe248 100644 --- a/board/sophgo/milkv_duo/board.c +++ b/board/sophgo/milkv_duo/board.c @@ -3,7 +3,11 @@ * Copyright (c) 2024, Kongyang Liu */ + #include + int board_init(void) { + if (IS_ENABLED(CONFIG_SYSRESET_CV1800B)) + device_bind_driver(gd->dm_root, "cv1800b_sysreset", "sysreset", NULL); return 0; }