From: Lu Date: Mon, 20 May 2024 01:29:14 +0000 (+0800) Subject: th1520: enable usb host support X-Git-Tag: accepted/tizen/unified/x/20241031.045847~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd138c76f8dcae0c6921a92a23c4fdd6bf24e691;p=platform%2Fkernel%2Fu-boot-thead.git th1520: enable usb host support --- diff --git a/arch/riscv/dts/light-lpi4a.dts b/arch/riscv/dts/light-lpi4a.dts index 485ead7e..ef5debaa 100644 --- a/arch/riscv/dts/light-lpi4a.dts +++ b/arch/riscv/dts/light-lpi4a.dts @@ -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>; diff --git a/board/thead/light-c910/board.c b/board/thead/light-c910/board.c index a5fa1cab..de9b3a3e 100644 --- a/board/thead/light-c910/board.c +++ b/board/thead/light-c910/board.c @@ -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"); diff --git a/configs/light_lpi4a_console_16g_defconfig b/configs/light_lpi4a_console_16g_defconfig index 6ed5c088..73443ece 100644 --- a/configs/light_lpi4a_console_16g_defconfig +++ b/configs/light_lpi4a_console_16g_defconfig @@ -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 diff --git a/configs/light_lpi4a_console_defconfig b/configs/light_lpi4a_console_defconfig index fe102095..01de8d9d 100644 --- a/configs/light_lpi4a_console_defconfig +++ b/configs/light_lpi4a_console_defconfig @@ -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