]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
odroid-c2: enable USB host controller
authorBeniamino Galvani <b.galvani@gmail.com>
Sun, 18 Aug 2019 13:42:55 +0000 (15:42 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 11 May 2020 08:07:57 +0000 (10:07 +0200)
Enable the second USB controller, which is connected to a hub with 4
ports. The first controller is for the OTG port and is currently not
supported.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
[narmstrong: removed useless DWC2_UTMI_WIDTH in meson64.h]
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi
configs/odroid-c2_defconfig

index c35158d7e9ee15be16cda93572e296e4e0e46eac..484b40504dc3898c510c55fd3f2894a40c0e7fc2 100644 (file)
@@ -5,3 +5,11 @@
  */
 
 #include "meson-gx-u-boot.dtsi"
+
+&usb0 {
+       status = "disabled";
+};
+
+&usb1 {
+       hnp-srp-disable;
+};
index 39279b40db1dd236934d3737c76c89fb0c533daa..3fb6f2d089846fe53c4bf2069d1a592a89035b0d 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 # CONFIG_CMD_LOADS is not set
 CONFIG_CMD_MMC=y
+CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_REGULATOR=y
 CONFIG_OF_CONTROL=y
@@ -32,14 +33,20 @@ CONFIG_MMC_MESON_GX=y
 CONFIG_PHY_REALTEK=y
 CONFIG_DM_ETH=y
 CONFIG_ETH_DESIGNWARE=y
+CONFIG_PHY=y
+CONFIG_MESON_GXBB_USB_PHY=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_MESON_GXBB=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
+CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_DM_RESET=y
 CONFIG_DEBUG_UART_MESON=y
 CONFIG_DEBUG_UART_ANNOUNCE=y
 CONFIG_DEBUG_UART_SKIP_INIT=y
 CONFIG_MESON_SERIAL=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_USB_DWC2=y
 CONFIG_OF_LIBFDT_OVERLAY=y
 CONFIG_SMBIOS_MANUFACTURER="Hardkernel Co., Ltd."