diff options
Diffstat (limited to 'drivers/dma/ste_dma40_ll.c')
-rw-r--r-- | drivers/dma/ste_dma40_ll.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/dma/ste_dma40_ll.c b/drivers/dma/ste_dma40_ll.c index cfc86a56d66f..8557cb88b255 100644 --- a/drivers/dma/ste_dma40_ll.c +++ b/drivers/dma/ste_dma40_ll.c | |||
@@ -113,8 +113,10 @@ void d40_phy_cfg(struct stedma40_chan_cfg *cfg, | |||
113 | dst |= 1 << D40_SREG_CFG_PRI_POS; | 113 | dst |= 1 << D40_SREG_CFG_PRI_POS; |
114 | } | 114 | } |
115 | 115 | ||
116 | src |= cfg->src_info.endianess << D40_SREG_CFG_LBE_POS; | 116 | if (cfg->src_info.big_endian) |
117 | dst |= cfg->dst_info.endianess << D40_SREG_CFG_LBE_POS; | 117 | src |= 1 << D40_SREG_CFG_LBE_POS; |
118 | if (cfg->dst_info.big_endian) | ||
119 | dst |= 1 << D40_SREG_CFG_LBE_POS; | ||
118 | 120 | ||
119 | *src_cfg = src; | 121 | *src_cfg = src; |
120 | *dst_cfg = dst; | 122 | *dst_cfg = dst; |