Skip to content
Snippets Groups Projects
Commit ad8eb667 authored by Yuri Mazzuoli's avatar Yuri Mazzuoli
Browse files

[E60] Add baord directory with basic board file

parent 48586c30
No related branches found
No related tags found
No related merge requests found
if TARGET_SECO_RK3588_E60
config SYS_BOARD
default "rk3588_e60"
config SYS_VENDOR
default "seco"
config SYS_CONFIG_NAME
default "seco_rk3588_e60"
config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
endif
#
# (C) Copyright 2023 Seco Spa, Ltd
#
# SPDX-License-Identifier: GPL-2.0+
#
obj-y += rk3588_e60.o
/*
* SPDX-License-Identifier: (GPL-2.0+ OR MIT)
*
* Copyright 2024 SECO
*/
#include <common.h>
#include <dwc3-uboot.h>
#include <usb.h>
DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_USB_DWC3
static struct dwc3_device dwc3_device_data = {
.maximum_speed = USB_SPEED_HIGH,
.base = 0xfc000000,
.dr_mode = USB_DR_MODE_PERIPHERAL,
.index = 0,
.dis_u2_susphy_quirk = 1,
.usb2_phyif_utmi_width = 16,
};
int usb_gadget_handle_interrupts(void)
{
dwc3_uboot_handle_interrupt(0);
return 0;
}
int board_usb_init(int index, enum usb_init_type init)
{
return dwc3_uboot_init(&dwc3_device_data);
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment