From: Kongyang Liu <seashell11234455@gmail.com>
To: u-boot@lists.denx.de
Cc: Leo Yu-Chi Liang <ycliang@andestech.com>, Tom Rini <trini@konsulko.com>
Subject: [PATCH 2/3] board: sophgo: milkv_duo: Bind sysreset driver
Date: Tue, 16 Apr 2024 15:52:39 +0800 [thread overview]
Message-ID: <20240416075254.13729-3-seashell11234455@gmail.com> (raw)
In-Reply-To: <20240416075254.13729-1-seashell11234455@gmail.com>
Bind cv1800b sysreset driver for Sophgo Milk-V Duo board in board_init
function.
Signed-off-by: Kongyang Liu <seashell11234455@gmail.com>
---
board/sophgo/milkv_duo/board.c | 4 ++++
1 file changed, 4 insertions(+)
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;
}
--
2.41.0
next prev parent reply other threads:[~2024-04-16 12:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-16 7:52 [PATCH 0/3] sysreset: sophgo: milkv_duo: Add sysreset support for Milk-V Duo board Kongyang Liu
2024-04-16 7:52 ` [PATCH 1/3] sysreset: cv1800b: Add sysreset driver for cv1800b SoC Kongyang Liu
2024-05-01 14:39 ` Leo Liang
2024-04-16 7:52 ` Kongyang Liu [this message]
2024-05-01 14:38 ` [PATCH 2/3] board: sophgo: milkv_duo: Bind sysreset driver Leo Liang
2024-04-16 7:52 ` [PATCH 3/3] configs: milkv_duo: Add sysreset configs Kongyang Liu
2024-05-01 14:37 ` Leo Liang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240416075254.13729-3-seashell11234455@gmail.com \
--to=seashell11234455@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.