mirror of https://github.com/thesofproject/sof.git
dw-dma: add PLATFORM_NUM_DW_DMACS definition
Adds PLATFORM_NUM_DW_DMACS definition. This way generic API can access this information. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
24201a650d
commit
f6ffa55621
|
@ -11,6 +11,14 @@
|
|||
#define __PLATFORM_DRIVERS_DW_DMA_H__
|
||||
|
||||
#include <sof/bit.h>
|
||||
#include <config.h>
|
||||
|
||||
/* number of supported DW-DMACs */
|
||||
#if CONFIG_CHERRYTRAIL_EXTRA_DW_DMA
|
||||
#define PLATFORM_NUM_DW_DMACS 3
|
||||
#else
|
||||
#define PLATFORM_NUM_DW_DMACS 2
|
||||
#endif
|
||||
|
||||
/* CTL_HI */
|
||||
#define DW_CTLH_CLASS(x) SET_BITS(31, 29, x)
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
|
||||
#include <sof/bit.h>
|
||||
|
||||
/* number of supported DW-DMACs */
|
||||
#define PLATFORM_NUM_DW_DMACS 2
|
||||
|
||||
/* CTL_HI */
|
||||
#define DW_CTLH_DONE(x) SET_BIT(12, x)
|
||||
#define DW_CTLH_BLOCK_TS_MASK MASK(11, 0)
|
||||
|
|
|
@ -11,6 +11,14 @@
|
|||
#define __CAVS_LIB_DW_DMA_H__
|
||||
|
||||
#include <sof/bit.h>
|
||||
#include <config.h>
|
||||
|
||||
/* number of supported DW-DMACs */
|
||||
#if CONFIG_SUECREEK
|
||||
#define PLATFORM_NUM_DW_DMACS 3
|
||||
#else
|
||||
#define PLATFORM_NUM_DW_DMACS 2
|
||||
#endif
|
||||
|
||||
/* CTL_HI */
|
||||
#define DW_CTLH_CLASS(x) SET_BITS(31, 29, x)
|
||||
|
|
Loading…
Reference in New Issue