1# Copyright (c) 2024 EXALT Technologies.
2#
3# SPDX-License-Identifier: Apache-2.0
4
5module = I3C_STM32
6module-str = i3c_stm32
7
8source "subsys/logging/Kconfig.template.log_config"
9config I3C_STM32
10	bool "STM32 I3C driver support"
11	depends on DT_HAS_ST_STM32_I3C_ENABLED
12	select I3C_IBI_WORKQUEUE if I3C_USE_IBI
13	default y
14	help
15	  Enable support for I3C on STM32 microcontrollers.
16
17if I3C_STM32
18
19config I3C_STM32_DMA
20	bool "STM32 I3C DMA driver support"
21	select DMA
22	help
23	  Enables support for I3C DMA mode on STM32 microcontrollers.
24
25config I3C_STM32_DMA_FIFO_HEAP_SIZE
26	int "Status FIFO and control FIFO heap"
27	depends on I3C_STM32_DMA
28	default 2048
29	help
30	  Configures the heap size for dynamically allocating the regions for
31	  storing status FIFO and control FIFO words which will be used by the DMA.
32	  This value depends on the maximum number of messages that will be sent
33	  during a single transfer. 2KB guarantees enough heap size for sending 256
34	  messages on a single transfer.
35
36endif # I3C_STM32
37