summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2022-09-07 21:50:35 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2022-09-29 16:21:15 +0200
commit559d71e9ca44132e9fe70e559c76b7a688fd8de4 (patch)
treef761041d7c9e18bb80d8a6c96338ec083bbe451e
parent18b8e973751ffc1e13bae4ba1967bfd6fecd65cb (diff)
downloadDistroKit-559d71e9ca44132e9fe70e559c76b7a688fd8de4.tar.gz
DistroKit-559d71e9ca44132e9fe70e559c76b7a688fd8de4.tar.xz
v7a: barebox: stm32mp: enable usb support
- enabling drivers for dwc2 gadget, dwc2 host, stm32_usbphyc and stmp32_pwr Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Link: https://lore.pengutronix.de/20220907195035.2643740-1-m.grzeschik@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r--configs/platform-v7a/barebox-stm32mp.config48
-rw-r--r--configs/platform-v7a/barebox-stm32mp.config.diff42
2 files changed, 61 insertions, 29 deletions
diff --git a/configs/platform-v7a/barebox-stm32mp.config b/configs/platform-v7a/barebox-stm32mp.config
index 529d2fa..3d9505a 100644
--- a/configs/platform-v7a/barebox-stm32mp.config
+++ b/configs/platform-v7a/barebox-stm32mp.config
@@ -96,7 +96,9 @@ CONFIG_UIMAGE=y
CONFIG_LOGBUF=y
CONFIG_STDDEV=y
CONFIG_MENUTREE=y
+CONFIG_USBGADGET_START=y
CONFIG_BOOT=y
+CONFIG_FASTBOOT_BASE=y
#
# General Settings
@@ -214,6 +216,13 @@ CONFIG_EXTERNAL_DTS_FRAGMENTS=""
#
# CONFIG_BOOTM_OPTEE is not set
# end of OP-TEE loading
+
+#
+# Android Fastboot
+#
+# CONFIG_FASTBOOT_SPARSE is not set
+# CONFIG_FASTBOOT_CMD_OEM is not set
+# end of Android Fastboot
# end of General Settings
#
@@ -404,6 +413,8 @@ CONFIG_CMD_GPIO=y
CONFIG_CMD_LED=y
CONFIG_CMD_POWEROFF=y
# CONFIG_CMD_SMC is not set
+CONFIG_CMD_USB=y
+CONFIG_CMD_USBGADGET=y
CONFIG_CMD_WD=y
CONFIG_CMD_WD_DEFAULT_TIMOUT=0
# end of Hardware manipulation
@@ -510,6 +521,7 @@ CONFIG_MICREL_PHY=y
# CONFIG_MDIO_BUS_MUX_GPIO is not set
# end of phylib
+# CONFIG_NET_USB is not set
# CONFIG_DSA is not set
# end of Network drivers
@@ -545,8 +557,32 @@ CONFIG_DISK_WRITE=y
# interface types
#
# CONFIG_DISK_INTF_PLATFORM_IDE is not set
-# CONFIG_USB_HOST is not set
-# CONFIG_USB_GADGET is not set
+CONFIG_USB=y
+CONFIG_USB_HOST=y
+CONFIG_USB_DWC2=y
+CONFIG_USB_DWC2_HOST=y
+CONFIG_USB_DWC2_GADGET=y
+# CONFIG_USB_DWC3 is not set
+# CONFIG_USB_EHCI is not set
+# CONFIG_USB_XHCI is not set
+# CONFIG_USB_ULPI is not set
+CONFIG_USB_OTGDEV=y
+# CONFIG_USB_STORAGE is not set
+
+#
+# USB Miscellaneous drivers
+#
+# CONFIG_USB_HUB_USB251XB is not set
+CONFIG_USB_GADGET=y
+# CONFIG_USB_GADGET_AUTOSTART is not set
+
+#
+# USB Gadget drivers
+#
+# CONFIG_USB_GADGET_DFU is not set
+# CONFIG_USB_GADGET_SERIAL is not set
+CONFIG_USB_GADGET_FASTBOOT=y
+# CONFIG_USB_GADGET_MASS_STORAGE is not set
# CONFIG_USB_MUSB is not set
# CONFIG_VIDEO is not set
# CONFIG_SOUND is not set
@@ -635,6 +671,7 @@ CONFIG_EEPROM_AT24=y
#
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_QT1070 is not set
+# CONFIG_KEYBOARD_USB is not set
# CONFIG_INPUT_SPECIALKEYS is not set
# end of Input device support
@@ -691,7 +728,7 @@ CONFIG_STM32_BSEC_WRITE=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED=y
-# CONFIG_REGULATOR_STM32_PWR is not set
+CONFIG_REGULATOR_STM32_PWR=y
CONFIG_REGULATOR_STM32_VREFBUF=y
CONFIG_REGULATOR_STPMIC1=y
# CONFIG_REGULATOR_ANATOP is not set
@@ -720,7 +757,10 @@ CONFIG_RESET_CONTROLLER=y
# CONFIG_FPGA is not set
# end of FPGA Configuration Support
-# CONFIG_GENERIC_PHY is not set
+CONFIG_GENERIC_PHY=y
+# CONFIG_USB_NOP_XCEIV is not set
+# CONFIG_PHY_FSL_IMX8MQ_USB is not set
+CONFIG_PHY_STM32_USBPHYC=y
# CONFIG_CRYPTO_HW is not set
#
diff --git a/configs/platform-v7a/barebox-stm32mp.config.diff b/configs/platform-v7a/barebox-stm32mp.config.diff
index c684c2e..219b80d 100644
--- a/configs/platform-v7a/barebox-stm32mp.config.diff
+++ b/configs/platform-v7a/barebox-stm32mp.config.diff
@@ -30,8 +30,6 @@ CONFIG_CMD_MMC_EXTCSD=y
CONFIG_CMD_OF_DIFF=y
CONFIG_CMD_POWEROFF=y
# CONFIG_CMD_SPI is undefined
-# CONFIG_CMD_USB is undefined
-# CONFIG_CMD_USBGADGET is undefined
CONFIG_COMPILE_LOGLEVEL=6
# CONFIG_CONSOLE_ACTIVATE_FIRST is not set
CONFIG_CONSOLE_ACTIVATE_NONE=y
@@ -51,11 +49,11 @@ CONFIG_DRIVER_SERIAL_STM32=y
# CONFIG_DRIVER_SPI_LITEX_SPIFLASH is undefined
CONFIG_EEPROM_AT24=y
# CONFIG_EEPROM_AT25 is undefined
-# CONFIG_FASTBOOT_BASE is undefined
-# CONFIG_FASTBOOT_CMD_OEM is undefined
-# CONFIG_FASTBOOT_SPARSE is undefined
+# CONFIG_FASTBOOT_CMD_OEM is not set
+# CONFIG_FASTBOOT_SPARSE is not set
# CONFIG_FIRMWARE_ALTERA_SERIAL is undefined
# CONFIG_FS_JFFS2 is undefined
+CONFIG_GENERIC_PHY=y
# CONFIG_GPIO_74164 is undefined
# CONFIG_GPIO_RASPBERRYPI_EXP is undefined
# CONFIG_HWRNG is not set
@@ -63,7 +61,6 @@ CONFIG_EEPROM_AT24=y
# CONFIG_I2C_GPIO is not set
CONFIG_I2C_STM32=y
# CONFIG_IMAGE_SPARSE is undefined
-# CONFIG_KEYBOARD_USB is undefined
CONFIG_LED_PWM=y
# CONFIG_LED_TRIGGERS is not set
# CONFIG_LIBFDT is undefined
@@ -104,7 +101,7 @@ CONFIG_MICREL_PHY=y
# CONFIG_NAND is undefined
CONFIG_NET_NETCONSOLE=y
# CONFIG_NET_NFS is not set
-# CONFIG_NET_USB is undefined
+# CONFIG_NET_USB is not set
# CONFIG_NET_USB_ASIX is undefined
# CONFIG_NET_USB_RTL8152 is undefined
# CONFIG_NET_USB_SMSC95XX is undefined
@@ -117,6 +114,8 @@ CONFIG_PARTITION_DISK_EFI=y
# CONFIG_PARTITION_DISK_EFI_GPT_NO_FORCE is not set
CONFIG_PBL_CONSOLE=y
# CONFIG_PBL_OPTEE is undefined
+# CONFIG_PHY_FSL_IMX8MQ_USB is not set
+CONFIG_PHY_STM32_USBPHYC=y
# CONFIG_PINCTRL_BCM283X is undefined
CONFIG_PINCTRL_STM32=y
CONFIG_PRINTF_UUID=y
@@ -126,7 +125,7 @@ CONFIG_PWM_STM32=y
# CONFIG_REGULATOR_ANATOP is not set
# CONFIG_REGULATOR_BCM283X is undefined
CONFIG_REGULATOR_FIXED=y
-# CONFIG_REGULATOR_STM32_PWR is not set
+CONFIG_REGULATOR_STM32_PWR=y
CONFIG_REGULATOR_STM32_VREFBUF=y
CONFIG_REGULATOR_STPMIC1=y
CONFIG_REMOTEPROC=y
@@ -143,24 +142,17 @@ CONFIG_STM32_REMOTEPROC=y
# CONFIG_STPMIC1_WATCHDOG is not set
# CONFIG_SYSCON_REBOOT_MODE is not set
CONFIG_THUMB2_BAREBOX=y
-# CONFIG_USB is undefined
-# CONFIG_USBGADGET_START is undefined
-# CONFIG_USB_DWC2_GADGET is undefined
-# CONFIG_USB_DWC2_HOST is undefined
-# CONFIG_USB_DWC3 is undefined
-# CONFIG_USB_EHCI is undefined
-# CONFIG_USB_GADGET is not set
-# CONFIG_USB_GADGET_AUTOSTART is undefined
-# CONFIG_USB_GADGET_DFU is undefined
-# CONFIG_USB_GADGET_FASTBOOT is undefined
-# CONFIG_USB_GADGET_MASS_STORAGE is undefined
-# CONFIG_USB_GADGET_SERIAL is undefined
-# CONFIG_USB_HOST is not set
-# CONFIG_USB_HUB_USB251XB is undefined
+CONFIG_USB_DWC2=y
+CONFIG_USB_DWC2_GADGET=y
+CONFIG_USB_DWC2_HOST=y
+# CONFIG_USB_EHCI is not set
+# CONFIG_USB_GADGET_AUTOSTART is not set
+# CONFIG_USB_GADGET_MASS_STORAGE is not set
+# CONFIG_USB_GADGET_SERIAL is not set
# CONFIG_USB_NET_AX88179_178A is undefined
-# CONFIG_USB_STORAGE is undefined
-# CONFIG_USB_ULPI is undefined
-# CONFIG_USB_XHCI is undefined
+# CONFIG_USB_NOP_XCEIV is not set
+CONFIG_USB_OTGDEV=y
+# CONFIG_USB_STORAGE is not set
CONFIG_USE_COMPRESSED_DTB=y
# CONFIG_WATCHDOG_BCM2835 is undefined
CONFIG_WATCHDOG_POLLER=y