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:
Tomasz Lauda 2019-09-16 12:30:43 +02:00 committed by Tomasz Lauda
parent 24201a650d
commit f6ffa55621
3 changed files with 19 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)