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>
This commit is contained in:

committed by
Leo Yu-Chi Liang

parent
a4dc68cba4
commit
9986f21729
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user