From: Marek Vasut Date: Sun, 9 Feb 2025 15:05:16 +0000 (+0100) Subject: ARM: renesas: Enable USBHS UDC and UMS on Renesas R-Car Gen3 Salvator-X(S) X-Git-Tag: v2025.07-rc1~18^2~57^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=421f84553f420ea08c525e47b02386c3afa0d671;p=pandora-u-boot.git ARM: renesas: Enable USBHS UDC and UMS on Renesas R-Car Gen3 Salvator-X(S) The Renesas R-Car Gen3 Salvator-X(S) boards contain USB micro-B port on which the USBHS controller is accessible. Enable the USBHS UDC driver to make this port usable, enable UMS USB Mass Storage support to make it possible to expose block devices as USB Mass Storage to Host PC. The USB VID/PID is picked from R-Car Series, 3rd Generation reference manual Rev.2.00 chapter 19.2.8 USB download mode, and matches R-Car H3 BootROM USB download mode VID/PID. Signed-off-by: Marek Vasut --- diff --git a/configs/rcar3_salvator-x_defconfig b/configs/rcar3_salvator-x_defconfig index 6b095f63549..39a98ccf577 100644 --- a/configs/rcar3_salvator-x_defconfig +++ b/configs/rcar3_salvator-x_defconfig @@ -28,6 +28,8 @@ CONFIG_CMD_DFU=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y CONFIG_CMD_USB=y +CONFIG_CMD_USB_MASS_STORAGE=y +CONFIG_DM_USB_GADGET=y CONFIG_OF_LIST="renesas/r8a77951-salvator-x renesas/r8a77960-salvator-x renesas/r8a77965-salvator-x" CONFIG_MULTI_DTB_FIT_LZO=y CONFIG_MULTI_DTB_FIT_USER_DEFINED_AREA=y @@ -74,4 +76,10 @@ CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_GADGET=y +CONFIG_USB_GADGET_MANUFACTURER="Renesas" +CONFIG_USB_GADGET_VENDOR_NUM=0x045b +CONFIG_USB_GADGET_PRODUCT_NUM=0x023c +CONFIG_USB_GADGET_DOWNLOAD=y +CONFIG_USB_RENESAS_USBHS=y CONFIG_USB_STORAGE=y