]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: sophgo: milkv_duo: Bind sysreset driver
authorKongyang Liu <seashell11234455@gmail.com>
Tue, 16 Apr 2024 07:52:39 +0000 (15:52 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 1 May 2024 14:40:12 +0000 (22:40 +0800)
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>
board/sophgo/milkv_duo/board.c

index eaa47be17396915e74c141e09fef752c07719f73..e7e28fe2486df0146ff2e0df658d7d4d2936146d 100644 (file)
@@ -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;
 }