dmaengine: dw-axi-dmac: Add StarFive JH7100 support
[platform/kernel/linux-starfive.git] / drivers / dma / dw-axi-dmac / dw-axi-dmac.h
index e9d5eb0..d6ec88c 100644 (file)
@@ -49,6 +49,7 @@ struct axi_dma_chan {
        struct dma_slave_config         config;
        enum dma_transfer_direction     direction;
        bool                            cyclic;
+       bool                            is_err;
        /* these other elements are all protected by vc.lock */
        bool                            is_paused;
 };
@@ -281,7 +282,11 @@ enum {
 #define CH_CTL_L_SRC_MAST              BIT(0)
 
 /* CH_CFG_H */
+#ifdef CONFIG_SOC_STARFIVE
+#define CH_CFG_H_PRIORITY_POS          15
+#else
 #define CH_CFG_H_PRIORITY_POS          17
+#endif
 #define CH_CFG_H_DST_PER_POS           12
 #define CH_CFG_H_SRC_PER_POS           7
 #define CH_CFG_H_HS_SEL_DST_POS                4