diff options
author | Aurelian Zanoschi <aurelian17@gmail.com> | 2021-02-01 20:37:28 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2021-03-16 22:25:08 +0000 |
commit | 08bf4fddbee65177194a8a31cd3b134f2b63cc5d (patch) | |
tree | b3891f938c9bc7a36fcf1395fe17a446608afb39 | |
parent | 93120ad0d3e509c89d65f2a33dff09b2b32708cc (diff) | |
download | meta-raspberrypi-08bf4fddbee65177194a8a31cd3b134f2b63cc5d.tar.gz |
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 <aurelian17@gmail.com>
(cherry picked from commit 71938572843428cb881948e8151742d8493ee89e)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
-rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 6 |
1 files changed, 6 insertions, 0 deletions
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() { | |||
204 | echo "dtoverlay=dwc2,dr_mode=peripheral" >> $CONFIG | 204 | echo "dtoverlay=dwc2,dr_mode=peripheral" >> $CONFIG |
205 | fi | 205 | fi |
206 | 206 | ||
207 | # DWC2 USB host mode support | ||
208 | if [ "${ENABLE_DWC2_HOST}" = "1" ]; then | ||
209 | echo "# Enable USB host mode" >> $CONFIG | ||
210 | echo "dtoverlay=dwc2,dr_mode=host" >> $CONFIG | ||
211 | fi | ||
212 | |||
207 | # AT86RF23X support | 213 | # AT86RF23X support |
208 | if [ "${ENABLE_AT86RF}" = "1" ]; then | 214 | if [ "${ENABLE_AT86RF}" = "1" ]; then |
209 | echo "# Enable AT86RF23X" >>$CONFIG | 215 | echo "# Enable AT86RF23X" >>$CONFIG |