dmaengine: dw: set LMS field in descriptors
The LMS field indicates from which master the descriptor is to be read. This patch assumes this is always the same as the memory side in a peripheral transfer which is true for all known systems. Signed-off-by: Mans Rullgard <mans@mansr.com> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:

committed by
Vinod Koul

parent
df1f3a2305
commit
2a0fae025e
@@ -143,6 +143,10 @@ enum dw_dma_msize {
|
||||
DW_DMA_MSIZE_256,
|
||||
};
|
||||
|
||||
/* Bitfields in LLP */
|
||||
#define DWC_LLP_LMS(x) ((x) & 3) /* list master select */
|
||||
#define DWC_LLP_LOC(x) ((x) & ~3) /* next lli */
|
||||
|
||||
/* Bitfields in CTL_LO */
|
||||
#define DWC_CTLL_INT_EN (1 << 0) /* irqs enabled? */
|
||||
#define DWC_CTLL_DST_WIDTH(n) ((n)<<1) /* bytes per element */
|
||||
|
Reference in New Issue
Block a user