]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: H616: enable USB support for H616 boards
authorAndre Przywara <andre.przywara@arm.com>
Sun, 11 Jun 2023 23:32:41 +0000 (00:32 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Thu, 20 Jul 2023 23:28:13 +0000 (00:28 +0100)
Now that the PHY driver supports the H616 USB PHY, we can enable USB
support for the two H616 boards.
As the OrangePi Zero2 has a USB-C port hard-wired to peripheral mode,
let's enable USB gadget mode for port 0, so people can use fastboot,
ethernet or mass storage functionality.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
configs/orangepi_zero2_defconfig
configs/x96_mate_defconfig

index 6cb942f511a10b8d6d8d6f773185a701a8c93a6e..4178ee6a28682f0a265f4d8e0b6b0f84eb770725 100644 (file)
@@ -19,3 +19,6 @@ CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_PHY_REALTEK=y
 CONFIG_SUN8I_EMAC=y
 CONFIG_SPI=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_OHCI_HCD=y
+CONFIG_USB_MUSB_GADGET=y
index 122c1a99e329b0863f7db9329814982e16277b3b..32ef0a42ee2594df3eb2400b36aa52af0c53265f 100644 (file)
@@ -18,3 +18,5 @@ CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
 CONFIG_SUPPORT_EMMC_BOOT=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_OHCI_HCD=y