Skip to content

Commit

Permalink
dt-bindings: dma: fsl-edma: Add fsl-edma.h to prevent hardcoding in dts
Browse files Browse the repository at this point in the history
[ Upstream commit 1e9b052 ]

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 <Frank.Li@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231114154824.3617255-3-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Stable-dep-of: a79f949 ("dmaengine: fsl-edma: correct max_segment_size setting")
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
nxpfrankli authored and Sasha Levin committed Mar 15, 2024
1 parent 328607c commit eefa270
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions include/dt-bindings/dma/fsl-edma.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */

#ifndef _FSL_EDMA_DT_BINDING_H_
#define _FSL_EDMA_DT_BINDING_H_

/* Receive Channel */
#define FSL_EDMA_RX 0x1

/* iMX8 audio remote DMA */
#define FSL_EDMA_REMOTE 0x2

/* FIFO is continue memory region */
#define FSL_EDMA_MULTI_FIFO 0x4

/* Channel need stick to even channel */
#define FSL_EDMA_EVEN_CH 0x8

/* Channel need stick to odd channel */
#define FSL_EDMA_ODD_CH 0x10

#endif

0 comments on commit eefa270

Please sign in to comment.