diff options
| author | Peter A. Bigot <pab@pabigot.com> | 2018-05-01 10:09:27 -0500 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.com> | 2018-05-05 10:03:21 +0100 |
| commit | d3709fa6887d6d35046df6376fe39e9a7a59038e (patch) | |
| tree | f408bcbb904370c6b3ad46df38e1227b7adfc6ed /recipes-bsp | |
| parent | 07d06b04ddad202e739f629395a390672809ec6a (diff) | |
| download | meta-raspberrypi-d3709fa6887d6d35046df6376fe39e9a7a59038e.tar.gz | |
rpi-config: add helper to enable dwc2 peripheral support
Document and add support to easily enable USB gadget mode.
Also fix a spelling error.
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Diffstat (limited to 'recipes-bsp')
| -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 e21872e..9440897 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb | |||
| @@ -172,6 +172,12 @@ do_deploy() { | |||
| 172 | echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 172 | echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 173 | fi | 173 | fi |
| 174 | 174 | ||
| 175 | # DWC2 USB peripheral support | ||
| 176 | if [ "${ENABLE_DWC2_PERIPHERAL}" = "1" ]; then | ||
| 177 | echo "# Enable USB peripheral mode" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 178 | echo "dtoverlay=dwc2,dr_mode=peripheral" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 179 | fi | ||
| 180 | |||
| 175 | # Append extra config if the user has provided any | 181 | # Append extra config if the user has provided any |
| 176 | echo "${RPI_EXTRA_CONFIG}" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 182 | echo "${RPI_EXTRA_CONFIG}" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 177 | } | 183 | } |
