Commit 477d749b authored by Sara Touqan's avatar Sara Touqan Committed by Chris Friedt
Browse files

drivers: sdhc: Support SDHC SDIO driver for STM32



This commit introduces support for the SDHC driver on STM32, enabling
functionality APIs for SDHC host controllers.

Signed-off-by: default avatarSara Touqan <zephyr@exalt.ps>
Signed-off-by: default avatarMohammad Odeh <zephyr@exalt.ps>
parent f27168fe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -16,4 +16,5 @@ zephyr_library_sources_ifdef(CONFIG_SDHC_RENESAS_RA sdhc_renesas_ra.c)
zephyr_library_sources_ifdef(CONFIG_SDHC_MAX32 sdhc_max32.c)
zephyr_library_sources_ifdef(CONFIG_SDHC_AMBIQ sdhc_ambiq.c)
zephyr_library_sources_ifdef(CONFIG_XLNX_SDHC xlnx_sdhc.c)
zephyr_library_sources_ifdef(CONFIG_SDHC_STM32_SDIO sdhc_stm32.c)
endif()
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ source "drivers/sdhc/Kconfig.renesas_ra"
source "drivers/sdhc/Kconfig.max32"
source "drivers/sdhc/Kconfig.ambiq"
source "drivers/sdhc/Kconfig.xlnx"
source "drivers/sdhc/Kconfig.stm32"

config SDHC_INIT_PRIORITY
	int "SDHC driver init priority"
+21 −0
Original line number Diff line number Diff line
# Copyright (c) 2025 EXALT Technologies.
# SPDX-License-Identifier: Apache-2.0

config SDHC_STM32_SDIO
	bool "STM32 SDMMC driver support for SDIO"
	depends on DT_HAS_ST_STM32_SDIO_ENABLED
	select USE_STM32_HAL_SDIO
	select USE_STM32_LL_SDMMC
	select SDHC_SUPPORTS_NATIVE_MODE
	imply CACHE_MANAGEMENT if !SDHC_STM32_POLLING_SUPPORT && DCACHE
	default y
	help
	  Enable support for SDMMC on STM32 platforms for SDIO devices.

config SDHC_BUFFER_ALIGNMENT
	default 32

config SDHC_STM32_POLLING_SUPPORT
	bool "STM32 SDHC Polling driver support"
	help
	  Enables support for SDHC Polling mode on STM32 microcontrollers.
+797 −0

File added.

Preview size limit exceeded, changes collapsed.