diff options
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ste_dma40_ll.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/dma/ste_dma40_ll.c b/drivers/dma/ste_dma40_ll.c index 851ad56e8409..d64b72ae2dc8 100644 --- a/drivers/dma/ste_dma40_ll.c +++ b/drivers/dma/ste_dma40_ll.c | |||
@@ -102,17 +102,18 @@ void d40_phy_cfg(struct stedma40_chan_cfg *cfg, | |||
102 | src |= cfg->src_info.data_width << D40_SREG_CFG_ESIZE_POS; | 102 | src |= cfg->src_info.data_width << D40_SREG_CFG_ESIZE_POS; |
103 | dst |= cfg->dst_info.data_width << D40_SREG_CFG_ESIZE_POS; | 103 | dst |= cfg->dst_info.data_width << D40_SREG_CFG_ESIZE_POS; |
104 | 104 | ||
105 | /* Set the priority bit to high for the physical channel */ | ||
106 | if (cfg->high_priority) { | ||
107 | src |= 1 << D40_SREG_CFG_PRI_POS; | ||
108 | dst |= 1 << D40_SREG_CFG_PRI_POS; | ||
109 | } | ||
110 | |||
105 | } else { | 111 | } else { |
106 | /* Logical channel */ | 112 | /* Logical channel */ |
107 | dst |= 1 << D40_SREG_CFG_LOG_GIM_POS; | 113 | dst |= 1 << D40_SREG_CFG_LOG_GIM_POS; |
108 | src |= 1 << D40_SREG_CFG_LOG_GIM_POS; | 114 | src |= 1 << D40_SREG_CFG_LOG_GIM_POS; |
109 | } | 115 | } |
110 | 116 | ||
111 | if (cfg->high_priority) { | ||
112 | src |= 1 << D40_SREG_CFG_PRI_POS; | ||
113 | dst |= 1 << D40_SREG_CFG_PRI_POS; | ||
114 | } | ||
115 | |||
116 | if (cfg->src_info.big_endian) | 117 | if (cfg->src_info.big_endian) |
117 | src |= 1 << D40_SREG_CFG_LBE_POS; | 118 | src |= 1 << D40_SREG_CFG_LBE_POS; |
118 | if (cfg->dst_info.big_endian) | 119 | if (cfg->dst_info.big_endian) |