File tree Expand file tree Collapse file tree 5 files changed +889
-0
lines changed Expand file tree Collapse file tree 5 files changed +889
-0
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,5 @@ zephyr_library_sources_ifdef(CONFIG_CDNS_SDHC sdhc_cdns_ll.c sdhc_cdns.c)
14
14
zephyr_library_sources_ifdef (CONFIG_SDHC_ESP32 sdhc_esp32.c )
15
15
zephyr_library_sources_ifdef (CONFIG_SDHC_RENESAS_RA sdhc_renesas_ra.c )
16
16
zephyr_library_sources_ifdef (CONFIG_SDHC_MAX32 sdhc_max32.c )
17
+ zephyr_library_sources_ifdef (CONFIG_SDHC_AMBIQ sdhc_ambiq.c )
17
18
endif ()
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ source "drivers/sdhc/Kconfig.sdhc_cdns"
19
19
source "drivers/sdhc/Kconfig.esp32"
20
20
source "drivers/sdhc/Kconfig.renesas_ra"
21
21
source "drivers/sdhc/Kconfig.max32"
22
+ source "drivers/sdhc/Kconfig.ambiq"
22
23
23
24
config SDHC_INIT_PRIORITY
24
25
int "SDHC driver init priority"
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Ambiq Micro Inc.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ config SDHC_AMBIQ
5
+ bool "Ambiq SDHC driver"
6
+ default y
7
+ depends on DT_HAS_AMBIQ_SDIO_ENABLED
8
+ select AMBIQ_HAL
9
+ select AMBIQ_HAL_USE_SDIO
10
+ select PINCTRL
11
+ select GPIO
12
+ select SDHC_SUPPORTS_NATIVE_MODE
13
+ help
14
+ This option enables the SDHC driver for Ambiq Apollo family.
15
+
16
+ if SDHC_AMBIQ
17
+
18
+ config AMBIQ_SDIO_ASYNC
19
+ bool "Ambiq SDIO Async Mode"
20
+ default y
21
+ depends on DT_HAS_AMBIQ_SDIO_ENABLED
22
+ help
23
+ This option enables Ambiq SDIO Async Mode.
24
+
25
+ config SDHC_BUFFER_ALIGNMENT
26
+ default 32 if DCACHE
27
+ default 16
28
+ help
29
+ SDHC buffer should be 32bytes aligned when placed in cachable region.
30
+
31
+ endif
You can’t perform that action at this time.
0 commit comments