Skip to content

Commit 1e9b052

Browse files
nxpfranklivinodkoul
authored andcommitted
dt-bindings: dma: fsl-edma: Add fsl-edma.h to prevent hardcoding in dts
Introduce a common dt-bindings header file, fsl-edma.h, shared between the driver and dts files. This addition aims to eliminate hardcoded values in dts files, promoting maintainability and consistency. DTS header file not support BIT() macro yet. Directly use 2^n number. Signed-off-by: Frank Li <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent dc51b44 commit 1e9b052

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

include/dt-bindings/dma/fsl-edma.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
2+
3+
#ifndef _FSL_EDMA_DT_BINDING_H_
4+
#define _FSL_EDMA_DT_BINDING_H_
5+
6+
/* Receive Channel */
7+
#define FSL_EDMA_RX 0x1
8+
9+
/* iMX8 audio remote DMA */
10+
#define FSL_EDMA_REMOTE 0x2
11+
12+
/* FIFO is continue memory region */
13+
#define FSL_EDMA_MULTI_FIFO 0x4
14+
15+
/* Channel need stick to even channel */
16+
#define FSL_EDMA_EVEN_CH 0x8
17+
18+
/* Channel need stick to odd channel */
19+
#define FSL_EDMA_ODD_CH 0x10
20+
21+
#endif

0 commit comments

Comments
 (0)