diff options
| author | Aurelian Zanoschi <aurelian17@gmail.com> | 2021-02-01 20:37:28 +0200 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.com> | 2021-02-04 19:36:22 +0000 |
| commit | 71938572843428cb881948e8151742d8493ee89e (patch) | |
| tree | eb045ed6f91689cdacaff232b6a21aa25b57e8d7 | |
| parent | f24de447904e98fb0a4e524631b246e331dc95d9 (diff) | |
| download | meta-raspberrypi-71938572843428cb881948e8151742d8493ee89e.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>
| -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 |
