mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 12:59:03 +02:00
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>
This commit is contained in:
parent
9879932097
commit
a2c63ff41f
|
@ -194,6 +194,12 @@ do_deploy() {
|
|||
echo "dtoverlay=dwc2,dr_mode=peripheral" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
|
||||
fi
|
||||
|
||||
# DWC2 USB host mode support
|
||||
if [ "${ENABLE_DWC2_HOST}" = "1" ]; then
|
||||
echo "# Enable USB host mode" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
|
||||
echo "dtoverlay=dwc2,dr_mode=host" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
|
||||
fi
|
||||
|
||||
# AT86RF23X support
|
||||
if [ "${ENABLE_AT86RF}" = "1" ]; then
|
||||
echo "# Enable AT86RF23X" >>${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
|
||||
|
|
Loading…
Reference in New Issue
Block a user