th1520: enable usb host support

This commit is contained in:
Lu
2024-05-20 09:29:14 +08:00
committed by Han Gao
parent 197c6cdccd
commit dd138c76f8
4 changed files with 14 additions and 2 deletions

View File

@@ -8,6 +8,10 @@
#address-cells = <2>;
#size-cells = <2>;
config {
huben-gpio = <&gpio1_porta 16 0>;
};
memory@0 {
device_type = "memory";
reg = <0x0 0xc0000000 0x0 0x40000000>;

View File

@@ -54,8 +54,6 @@ int board_usb_cleanup(int index, enum usb_init_type init)
int xhci_hcd_init(int index, struct xhci_hccr **hccr, struct xhci_hcor **hcor)
{
int ret = board_usb_init(index, USB_INIT_HOST);
if (ret != 0) {
puts("Failed to initialize board for USB\n");

View File

@@ -112,3 +112,8 @@ CONFIG_BOARD_RNG_SEED=y
CONFIG_FIXUP_MEMORY_REGION=y
CONFIG_MISC=y
CONFIG_LIGHT_AON_CONF=y
CONFIG_DM_USB=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_DWC3=y
# CONFIG_DOS_PARTITION is not set
CONFIG_CMD_USB=y

View File

@@ -111,3 +111,8 @@ CONFIG_BOARD_RNG_SEED=y
CONFIG_FIXUP_MEMORY_REGION=y
CONFIG_MISC=y
CONFIG_LIGHT_AON_CONF=y
CONFIG_DM_USB=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_DWC3=y
# CONFIG_DOS_PARTITION is not set
CONFIG_CMD_USB=y