]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phycore-imx8mp: add USB mass storage support
authorBenjamin Hahn <B.Hahn@phytec.de>
Thu, 8 Feb 2024 12:03:10 +0000 (13:03 +0100)
committerFabio Estevam <festevam@denx.de>
Thu, 8 Feb 2024 13:11:46 +0000 (10:11 -0300)
add support for USB mass storage to USB0 port of phyBOARD Pollux.

tested with "ums 0 mmc 2"

Signed-off-by: Benjamin Hahn <B.Hahn@phytec.de>
arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi
configs/phycore-imx8mp_defconfig

index 1c7b2505499c4343d5ccbcd6b40de9c858448910..b4efff27a70b8944129ad6f07be191b9f5bbf182 100644 (file)
        bootph-pre-ram;
 };
 
+&usb_dwc3_0 {
+       dr_mode = "peripheral";
+};
+
 &usdhc2 {
        bootph-pre-ram;
 };
index 74450b957b08a135a66a658f75848f6d6f7c4e33..e3fe4ed94eeb985d9be914910031d6bda8c16b05 100644 (file)
@@ -66,6 +66,7 @@ CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
@@ -123,6 +124,7 @@ CONFIG_SYSRESET_PSCI=y
 CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_DM_THERMAL=y
 CONFIG_USB=y
+CONFIG_DM_USB_GADGET=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_XHCI_DWC3_OF_SIMPLE=y
@@ -130,4 +132,9 @@ CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GENERIC=y
 CONFIG_USB_STORAGE=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_MANUFACTURER="FSL"
+CONFIG_USB_GADGET_VENDOR_NUM=0x0525
+CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_IMX_WATCHDOG=y