From e6d55dd064d6ed0e496fdd3506df1f7d3fd75aad Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Mon, 15 Jul 2024 11:52:12 +0200 Subject: [PATCH] linux: raspberrypicm4-ioboard-sb: add support for the dwc2 kernel driver This adds support for the DesignWare Core USB 2.0 controller, required for the USB boot flow. Changelog-entry: add dwc2 support to the raspberrypicm4-ioboard-sb kernel Signed-off-by: Alex Gonzalez --- .../recipes-kernel/linux/linux-balena-bootloader_%.bbappend | 3 +++ .../recipes-kernel/linux/linux-raspberrypi_%.bbappend | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 layers/meta-balena-raspberrypi/recipes-kernel/linux/linux-balena-bootloader_%.bbappend diff --git a/layers/meta-balena-raspberrypi/recipes-kernel/linux/linux-balena-bootloader_%.bbappend b/layers/meta-balena-raspberrypi/recipes-kernel/linux/linux-balena-bootloader_%.bbappend new file mode 100644 index 000000000..7f8a17072 --- /dev/null +++ b/layers/meta-balena-raspberrypi/recipes-kernel/linux/linux-balena-bootloader_%.bbappend @@ -0,0 +1,3 @@ +# Enable the dwc2 driver +BALENA_CONFIGS:append:raspberrypicm4-ioboard-sb = " dwc2" +BALENA_CONFIGS[dwc2] = "CONFIG_USB_DWC2=y" diff --git a/layers/meta-balena-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend b/layers/meta-balena-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend index 3a13faf44..402c6ac37 100644 --- a/layers/meta-balena-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend +++ b/layers/meta-balena-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend @@ -46,3 +46,6 @@ BALENA_CONFIGS[pieeprom] = " \ CONFIG_SPI_BCM2835=y \ CONFIG_SPI_SPIDEV=y \ " + +BALENA_CONFIGS:append:raspberrypicm4-ioboard-sb = " dwc2" +BALENA_CONFIGS[dwc2] = "CONFIG_USB_DWC2=y"