From 08bf4fddbee65177194a8a31cd3b134f2b63cc5d Mon Sep 17 00:00:00 2001 From: Aurelian Zanoschi Date: Mon, 1 Feb 2021 20:37:28 +0200 Subject: rpi-config: Add support for CM4 host USB By default in case of CM4 IO board, the USB ports (header + built-in) are disabled. In order to enable them the DWC2 mode needs to be set to host. Signed-off-by: Aurelian Zanoschi (cherry picked from commit 71938572843428cb881948e8151742d8493ee89e) Signed-off-by: Ricardo Salveti --- recipes-bsp/bootfiles/rpi-config_git.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index 25e3e89..de43c4b 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb @@ -204,6 +204,12 @@ do_deploy() { echo "dtoverlay=dwc2,dr_mode=peripheral" >> $CONFIG fi + # DWC2 USB host mode support + if [ "${ENABLE_DWC2_HOST}" = "1" ]; then + echo "# Enable USB host mode" >> $CONFIG + echo "dtoverlay=dwc2,dr_mode=host" >> $CONFIG + fi + # AT86RF23X support if [ "${ENABLE_AT86RF}" = "1" ]; then echo "# Enable AT86RF23X" >>$CONFIG -- cgit v1.2.3-54-g00ecf