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 7193857284)
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
This commit is contained in:
Aurelian Zanoschi 2021-02-01 20:37:28 +02:00 committed by Andrei Gherzan
parent 93120ad0d3
commit 08bf4fddbe

View File

@ -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