]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: imx8mm_beacon: Enable USB
authorAdam Ford <aford173@gmail.com>
Sat, 22 Jan 2022 18:27:34 +0000 (12:27 -0600)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 14:49:01 +0000 (15:49 +0100)
With the updated device tree's having USB support, enable in
U-Boot.  This also requires the addition of the imx8m power
domain, since the USB is gated by the power domain controller.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi
configs/imx8mm_beacon_defconfig

index 73ddfdade6ad729d063204403dfaaa32e6eb0337..e33e10ac1294d3109a767da29e8e4d7c62827225 100644 (file)
        u-boot,dm-spl;
 };
 
+&usbotg1 {
+       dr_mode="host";
+};
+
 &usdhc2 {
        u-boot,dm-spl;
 };
index ba9c9a3ee009806feb481b60584c271f81e83a68..14b34e651689efa327204533731cc441af1169e8 100644 (file)
@@ -45,6 +45,8 @@ CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PART=y
 CONFIG_CMD_SPI=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
@@ -96,6 +98,8 @@ CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_SPL_PINCTRL=y
 CONFIG_PINCTRL_IMX8M=y
+CONFIG_POWER_DOMAIN=y
+CONFIG_IMX8M_POWER_DOMAIN=y
 CONFIG_DM_PMIC=y
 CONFIG_DM_PMIC_BD71837=y
 CONFIG_SPL_DM_PMIC_BD71837=y
@@ -118,4 +122,13 @@ CONFIG_SPL_SYSRESET=y
 CONFIG_SYSRESET_PSCI=y
 CONFIG_SYSRESET_WATCHDOG=y
 CONFIG_DM_THERMAL=y
+CONFIG_USB=y
+# CONFIG_SPL_DM_USB is not set
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VENDOR_NUM=0x0525
+CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
+CONFIG_CI_UDC=y
+CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_IMX_WATCHDOG=y