From: Thomas Richard Date: Sat, 18 Apr 2026 12:50:26 +0000 (+0200) Subject: stm32: add kmod-spi-stm32-ospi and kmod-spi-stm32-qspi X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af95bb05e740c02abcd5e47db26049035ef3402;p=thirdparty%2Fopenwrt.git stm32: add kmod-spi-stm32-ospi and kmod-spi-stm32-qspi This adds STM32 OCTO and QUAD SPI controller support. Signed-off-by: Thomas Richard Link: https://github.com/openwrt/openwrt/pull/22989 Signed-off-by: Jonas Jelonek --- diff --git a/target/linux/stm32/modules.mk b/target/linux/stm32/modules.mk index bfa1e5f0f2c..3764d52949c 100644 --- a/target/linux/stm32/modules.mk +++ b/target/linux/stm32/modules.mk @@ -128,6 +128,34 @@ endef $(eval $(call KernelPackage,spi-stm32)) +define KernelPackage/spi-stm32-ospi + SUBMENU=$(SPI_MENU) + TITLE:=STMicroelectronics STM32 OCTO SPI controller + DEPENDS:=@LINUX_6_18 \ + @TARGET_stm32 + KCONFIG:=CONFIG_SPI_STM32_OSPI \ + CONFIG_SPI_MEM=y + FILES:=$(LINUX_DIR)/drivers/spi/spi-stm32-ospi.ko + AUTOLOAD:=$(call AutoProbe,spi-stm32-ospi) +endef + +$(eval $(call KernelPackage,spi-stm32-ospi)) + + +define KernelPackage/spi-stm32-qspi + SUBMENU=$(SPI_MENU) + TITLE:=STMicroelectronics STM32 QUAD SPI controller + DEPENDS:=@LINUX_6_18 \ + @TARGET_stm32 + KCONFIG:=CONFIG_SPI_STM32_QSPI \ + CONFIG_SPI_MEM=y + FILES:=$(LINUX_DIR)/drivers/spi/spi-stm32-qspi.ko + AUTOLOAD:=$(call AutoProbe,spi-stm32-qspi) +endef + +$(eval $(call KernelPackage,spi-stm32-qspi)) + + define KernelPackage/stm32-adc TITLE:=STM32 ADC KCONFIG:=CONFIG_STM32_ADC_CORE \