diff options
author | Frank Li <Frank.Li@nxp.com> | 2023-08-21 18:16:08 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-08-22 16:41:02 +0200 |
commit | 9e006b243962a42f6927d2d9fe1a7b0a29f45265 (patch) | |
tree | 3010014433fd654646ca809e9a55e535892051cd /drivers/dma/fsl-edma-common.h | |
parent | dmaengine: fsl-edma: clean up EXPORT_SYMBOL_GPL in fsl-edma-common.c (diff) | |
download | linux-9e006b243962a42f6927d2d9fe1a7b0a29f45265.tar.xz linux-9e006b243962a42f6927d2d9fe1a7b0a29f45265.zip |
dmaengine: fsl-edma: transition from bool fields to bitmask flags in drvdata
Replace individual bool fields with bitmask flags within drvdata. This
will facilitate future extensions, making it easier to add more flags to
accommodate new versions of the edma IP.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20230821161617.2142561-4-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/fsl-edma-common.h')
-rw-r--r-- | drivers/dma/fsl-edma-common.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dma/fsl-edma-common.h b/drivers/dma/fsl-edma-common.h index 004ec4a6bc86..db137a8c558d 100644 --- a/drivers/dma/fsl-edma-common.h +++ b/drivers/dma/fsl-edma-common.h @@ -144,11 +144,12 @@ enum edma_version { v3, /* 32ch, i.mx7ulp */ }; +#define FSL_EDMA_DRV_HAS_DMACLK BIT(0) +#define FSL_EDMA_DRV_MUX_SWAP BIT(1) struct fsl_edma_drvdata { enum edma_version version; u32 dmamuxs; - bool has_dmaclk; - bool mux_swap; + u32 flags; int (*setup_irq)(struct platform_device *pdev, struct fsl_edma_engine *fsl_edma); }; |