1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright 2022 Marek Vasut <marex@denx.de>
4  */
5 
6 #include <common.h>
7 #include <asm/arch/clock.h>
8 #include <asm/io.h>
9 #include <dm.h>
10 #include <dm/device-internal.h>
11 #include <malloc.h>
12 #include <spl.h>
13 
14 #include "../common/common.h"
15 
16 DECLARE_GLOBAL_DATA_PTR;
17 
board_init(void)18 int board_init(void)
19 {
20 	return 0;
21 }
22 
board_late_init(void)23 int board_late_init(void)
24 {
25 	struct udevice *dev;
26 	int ret;
27 
28 	dmo_setup_boot_device();
29 	dmo_setup_mac_address();
30 
31 	ret = uclass_get_device_by_name(UCLASS_MISC, "usb-hub@2c", &dev);
32 	if (ret)
33 		printf("Error bringing up USB hub (%d)\n", ret);
34 
35 	return 0;
36 }
37