Kongyang Liu | b64fc0e | 2024-01-28 15:05:25 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (c) 2024, Kongyang Liu <seashell11234455@gmail.com> |
| 4 | */ |
| 5 | |
Kongyang Liu | 1fbf86c | 2024-04-20 15:00:27 +0800 | [diff] [blame] | 6 | #include <dm/lists.h> |
| 7 | |
| 8 | #include "ethernet.h" |
Kongyang Liu | 3f7d949 | 2024-04-16 15:52:39 +0800 | [diff] [blame] | 9 | |
Kongyang Liu | b64fc0e | 2024-01-28 15:05:25 +0800 | [diff] [blame] | 10 | int board_init(void) |
| 11 | { |
Kongyang Liu | 3f7d949 | 2024-04-16 15:52:39 +0800 | [diff] [blame] | 12 | if (IS_ENABLED(CONFIG_SYSRESET_CV1800B)) |
| 13 | device_bind_driver(gd->dm_root, "cv1800b_sysreset", "sysreset", NULL); |
Kongyang Liu | 1fbf86c | 2024-04-20 15:00:27 +0800 | [diff] [blame] | 14 | |
| 15 | if (IS_ENABLED(CONFIG_NET)) |
| 16 | cv1800b_ephy_init(); |
| 17 | |
Kongyang Liu | b64fc0e | 2024-01-28 15:05:25 +0800 | [diff] [blame] | 18 | return 0; |
| 19 | } |