diff options
author | Aurelian Zanoschi <aurelian17@gmail.com> | 2021-02-01 20:37:28 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2021-02-05 10:41:46 +0000 |
commit | a2c63ff41f6d2ae400ddc827e9f2b0fd1bfb522f (patch) | |
tree | a34b5123e5424f10a8c6d4642c7706ac203b2387 | |
parent | 987993209716302eb8f314f69a2a3340555f94d8 (diff) | |
download | meta-raspberrypi-a2c63ff41f6d2ae400ddc827e9f2b0fd1bfb522f.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 9489951..2541e9e 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb | |||
@@ -194,6 +194,12 @@ do_deploy() { | |||
194 | echo "dtoverlay=dwc2,dr_mode=peripheral" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt | 194 | echo "dtoverlay=dwc2,dr_mode=peripheral" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt |
195 | fi | 195 | fi |
196 | 196 | ||
197 | # DWC2 USB host mode support | ||
198 | if [ "${ENABLE_DWC2_HOST}" = "1" ]; then | ||
199 | echo "# Enable USB host mode" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt | ||
200 | echo "dtoverlay=dwc2,dr_mode=host" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt | ||
201 | fi | ||
202 | |||
197 | # AT86RF23X support | 203 | # AT86RF23X support |
198 | if [ "${ENABLE_AT86RF}" = "1" ]; then | 204 | if [ "${ENABLE_AT86RF}" = "1" ]; then |
199 | echo "# Enable AT86RF23X" >>${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt | 205 | echo "# Enable AT86RF23X" >>${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt |