File tree Expand file tree Collapse file tree 5 files changed +568
-0
lines changed Expand file tree Collapse file tree 5 files changed +568
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ zephyr_library_sources_ifdef(CONFIG_SDHC_INFINEON_CAT1 ifx_cat1_sdio.c)
1414zephyr_library_sources_ifdef(CONFIG_CDNS_SDHC sdhc_cdns_ll.c sdhc_cdns.c)
1515zephyr_library_sources_ifdef(CONFIG_SDHC_ESP32 sdhc_esp32.c)
1616zephyr_library_sources_ifdef(CONFIG_SDHC_RENESAS_RA sdhc_renesas_ra.c)
17+ zephyr_library_sources_ifdef(CONFIG_SDHC_LITEX_LITESDCARD sdhc_litex_litesdcard.c)
1718zephyr_library_sources_ifdef(CONFIG_SDHC_MAX32 sdhc_max32.c)
1819zephyr_library_sources_ifdef(CONFIG_SDHC_AMBIQ sdhc_ambiq.c)
1920zephyr_library_sources_ifdef(CONFIG_XLNX_SDHC xlnx_sdhc.c)
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ source "drivers/sdhc/Kconfig.intel"
1919source "drivers/sdhc/Kconfig.sdhc_cdns"
2020source "drivers/sdhc/Kconfig.esp32"
2121source "drivers/sdhc/Kconfig.renesas_ra"
22+ source "drivers/sdhc/Kconfig.litex"
2223source "drivers/sdhc/Kconfig.max32"
2324source "drivers/sdhc/Kconfig.ambiq"
2425source "drivers/sdhc/Kconfig.xlnx"
Original file line number Diff line number Diff line change 1+ # Copyright The Zephyr Project Contributors
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ config SDHC_LITEX_LITESDCARD
5+ bool "LiteX LiteSDCard SDHC driver"
6+ default y
7+ depends on DT_HAS_LITEX_LITESDCARD_SDHC_ENABLED
8+ select SDHC_SUPPORTS_NATIVE_MODE
9+ help
10+ sdhc driver for LiteX LiteSDCard.
11+
12+ if SDHC_LITEX_LITESDCARD
13+
14+ configdefault SDHC_BUFFER_ALIGNMENT
15+ default 4
16+
17+ config SDHC_LITEX_LITESDCARD_NO_COHERENT_DMA
18+ bool "No coherent DMA bus, need cache management"
19+ select CACHE_MANAGEMENT
20+ depends on DCACHE
21+ help
22+ This needs to be enabled if the LiteSDCard Module is not connected
23+ to a coherent DMA bus, meaning that the cache needs to be managed
24+ before and after DMA operations.
25+
26+ endif # SDHC_LITEX_LITESDCARD
You can’t perform that action at this time.
0 commit comments