diff options
author | Adam Ford <aford173@gmail.com> | 2022-01-22 12:27:34 -0600 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-02-05 15:49:01 +0100 |
commit | 2f95456a9a1a4b12454fdd35a77afa14b8549434 (patch) | |
tree | 9367c77be96c2ee678e5f0e3144d7ebec9f6f77f | |
parent | d81c6a9f6394098ba684595383c6e1d1fac775de (diff) | |
download | u-boot-2f95456a9a1a4b12454fdd35a77afa14b8549434.zip u-boot-2f95456a9a1a4b12454fdd35a77afa14b8549434.tar.gz u-boot-2f95456a9a1a4b12454fdd35a77afa14b8549434.tar.bz2 |
imx: imx8mm_beacon: Enable USB
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>
-rw-r--r-- | arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi | 4 | ||||
-rw-r--r-- | configs/imx8mm_beacon_defconfig | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi b/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi index 73ddfda..e33e10a 100644 --- a/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi @@ -77,6 +77,10 @@ u-boot,dm-spl; }; +&usbotg1 { + dr_mode="host"; +}; + &usdhc2 { u-boot,dm-spl; }; diff --git a/configs/imx8mm_beacon_defconfig b/configs/imx8mm_beacon_defconfig index ba9c9a3..14b34e6 100644 --- a/configs/imx8mm_beacon_defconfig +++ b/configs/imx8mm_beacon_defconfig @@ -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 |