[PATCH] configs: rockchip: enable USB gadget functions for Radxa ROCK 3A
FUKAUMI Naoki
naoki at radxa.com
Sat Aug 3 01:15:45 CEST 2024
hi,
please don't merge this for a while.
I'm thinking opposite change may be better to align with ROCK 4/5
series. (OTG port is "host")
any comment?
--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.
On 8/2/24 11:58, FUKAUMI Naoki wrote:
> since dr_mode of "usb_host0_xhci" is "otg", we can use USB gadget
> functions on USB3 Type-A OTG (upper) port. enable it.
>
> Signed-off-by: FUKAUMI Naoki <naoki at radxa.com>
> ---
> configs/rock-3a-rk3568_defconfig | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/configs/rock-3a-rk3568_defconfig b/configs/rock-3a-rk3568_defconfig
> index 66ac2f6d7aa..0568a730383 100644
> --- a/configs/rock-3a-rk3568_defconfig
> +++ b/configs/rock-3a-rk3568_defconfig
> @@ -37,6 +37,8 @@ CONFIG_CMD_MMC=y
> CONFIG_CMD_PCI=y
> CONFIG_CMD_POWEROFF=y
> CONFIG_CMD_USB=y
> +CONFIG_CMD_ROCKUSB=y
> +CONFIG_CMD_USB_MASS_STORAGE=y
> # CONFIG_CMD_SETEXPR is not set
> CONFIG_CMD_PMIC=y
> CONFIG_CMD_REGULATOR=y
> @@ -50,6 +52,7 @@ CONFIG_SPL_SYSCON=y
> CONFIG_SCSI_AHCI=y
> CONFIG_AHCI_PCI=y
> CONFIG_SPL_CLK=y
> +# CONFIG_USB_FUNCTION_FASTBOOT is not set
> CONFIG_ROCKCHIP_GPIO=y
> CONFIG_SYS_I2C_ROCKCHIP=y
> CONFIG_MISC=y
> @@ -90,4 +93,7 @@ CONFIG_USB_OHCI_HCD=y
> CONFIG_USB_OHCI_GENERIC=y
> CONFIG_USB_DWC3=y
> CONFIG_USB_DWC3_GENERIC=y
> +CONFIG_USB_GADGET=y
> +CONFIG_USB_GADGET_DOWNLOAD=y
> +CONFIG_USB_FUNCTION_ROCKUSB=y
> CONFIG_ERRNO_STR=y
More information about the U-Boot
mailing list