summaryrefslogtreecommitdiff
path: root/board/sophgo/milkv_duo/board.c
blob: 9adbb08f5cece87751e56e6897583f2f3912a938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (c) 2024, Kongyang Liu <seashell11234455@gmail.com>
 */

#include <dm/lists.h>

#include "ethernet.h"

int board_init(void)
{
	if (IS_ENABLED(CONFIG_SYSRESET_CV1800B))
		device_bind_driver(gd->dm_root, "cv1800b_sysreset", "sysreset", NULL);

	if (IS_ENABLED(CONFIG_NET))
		cv1800b_ephy_init();

	return 0;
}