aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKongyang Liu <seashell11234455@gmail.com>2024-04-16 15:52:39 +0800
committerLeo Yu-Chi Liang <ycliang@andestech.com>2024-05-01 22:40:12 +0800
commit9986f2172998757cea64a39cad9e59f7f55aa5bd (patch)
tree3aa31e75e8143d0cee2ed5f5d32d184aa881c331
parenta4dc68cba42c6c1be5eaab6ef84d272cf42fe9ef (diff)
downloadu-boot-9986f2172998757cea64a39cad9e59f7f55aa5bd.tar.gz
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 <seashell11234455@gmail.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
-rw-r--r--board/sophgo/milkv_duo/board.c4
1 files changed, 4 insertions, 0 deletions
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 <seashell11234455@gmail.com>
*/
+ #include <dm/lists.h>
+
int board_init(void)
{
+ if (IS_ENABLED(CONFIG_SYSRESET_CV1800B))
+ device_bind_driver(gd->dm_root, "cv1800b_sysreset", "sysreset", NULL);
return 0;
}