1# DesignWare DMA common configuration options
2
3# Copyright (c) 2022 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6config DMA_DW_FIFO_PARTITION
7	bool "FIFO Partitioning"
8	help
9	  FIFO partition feature
10
11config DMA_DW_LLI_POOL_SIZE
12	int "number of LLI structs in an allocation pool"
13	default 2
14	help
15	  The number of LLI structs in a statically allocated pool. Each channel has its own
16	  LLI struct pool. If during dma_config() a log notes there are not enough LLI structs
17	  then this should be increased to match the need.
18
19config DMA_DW_HW_LLI
20	bool "hardware supports scatter gather"
21	default y
22	help
23	  The hardware is by default expected to support hardware LLI (scatter gather).
24	  When not enabled the driver will still perform scatter gather but using software
25	  to run through the scatter gather list.
26
27config DMA_DW_SUSPEND_DRAIN
28	bool "channels should be suspended and drained on stop"
29	depends on DMA_INTEL_ADSP_GPDMA
30	help
31	  Rather than immediately stopping a DMA channel the channel is suspended
32	  with the DRAIN bit flag set to allow for the hardware FIFO to be drained
33	  before stopping the channel.
34
35config DMA_DW_HOST_MASK
36	int "memory space mask"
37	default 0
38	help
39	  Some instances of the DesignWare DMAC require a mask applied to source/destination
40	  addresses to signifiy the memory space the address is in.
41
42config DMA_DW_CHANNEL_COUNT
43	int "dw max channel count"
44	default 8
45	help
46	  Channel count for designware DMA instances.
47