blob: 9adbb08f5cece87751e56e6897583f2f3912a938 [file] [log] [blame]
Kongyang Liub64fc0e2024-01-28 15:05:25 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (c) 2024, Kongyang Liu <seashell11234455@gmail.com>
4 */
5
Kongyang Liu1fbf86c2024-04-20 15:00:27 +08006#include <dm/lists.h>
7
8#include "ethernet.h"
Kongyang Liu3f7d9492024-04-16 15:52:39 +08009
Kongyang Liub64fc0e2024-01-28 15:05:25 +080010int board_init(void)
11{
Kongyang Liu3f7d9492024-04-16 15:52:39 +080012 if (IS_ENABLED(CONFIG_SYSRESET_CV1800B))
13 device_bind_driver(gd->dm_root, "cv1800b_sysreset", "sysreset", NULL);
Kongyang Liu1fbf86c2024-04-20 15:00:27 +080014
15 if (IS_ENABLED(CONFIG_NET))
16 cv1800b_ephy_init();
17
Kongyang Liub64fc0e2024-01-28 15:05:25 +080018 return 0;
19}