mirror of https://github.com/thesofproject/sof.git
driver: ssp: using CONFIG_CAVS define in ssp.h
Refactor by replacing specific CONFIG_{cavs_platform} defines by CONFIG_CAVS define. Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
This commit is contained in:
parent
1071076be1
commit
1a89f40b80
|
@ -128,8 +128,7 @@ extern const struct dai_ops ssp_ops;
|
|||
#define SSCR2_ASRC_CNTR_CLR BIT(9)
|
||||
#define SSCR2_ASRC_FRM_CNRT_EN BIT(10)
|
||||
#define SSCR2_ASRC_INTR_MASK BIT(11)
|
||||
#elif CONFIG_APOLLOLAKE || CONFIG_CANNONLAKE || CONFIG_ICELAKE || \
|
||||
CONFIG_SUECREEK || CONFIG_HASWELL || CONFIG_BROADWELL
|
||||
#elif CONFIG_CAVS || CONFIG_HASWELL || CONFIG_BROADWELL
|
||||
#define SSCR2_TURM1 BIT(1)
|
||||
#define SSCR2_PSPSRWFDFD BIT(3)
|
||||
#define SSCR2_PSPSTWFDFD BIT(4)
|
||||
|
@ -168,7 +167,7 @@ extern const struct dai_ops ssp_ops;
|
|||
#define SSPSP2 0x44
|
||||
#define SSPSP2_FEP_MASK 0xff
|
||||
|
||||
#if CONFIG_APOLLOLAKE || CONFIG_CANNONLAKE || CONFIG_ICELAKE || CONFIG_SUECREEK
|
||||
#if CONFIG_CAVS
|
||||
#define SSCR3 0x48
|
||||
#define SSIOC 0x4C
|
||||
|
||||
|
@ -205,8 +204,7 @@ extern const struct dai_ops ssp_ops;
|
|||
#define SFIFOL_TFL(x) ((x) & 0xFFFF)
|
||||
#define SFIFOL_RFL(x) ((x) >> 16)
|
||||
|
||||
#if CONFIG_APOLLOLAKE || CONFIG_CANNONLAKE || CONFIG_SUECREEK \
|
||||
|| CONFIG_ICELAKE || CONFIG_HASWELL || CONFIG_BROADWELL
|
||||
#if CONFIG_CAVS || CONFIG_HASWELL || CONFIG_BROADWELL
|
||||
#define SSTSA_TSEN BIT(8)
|
||||
#define SSRSA_RSEN BIT(8)
|
||||
|
||||
|
@ -222,7 +220,7 @@ extern const struct dai_ops ssp_ops;
|
|||
#define SSIOC_SCOE BIT(5)
|
||||
#endif
|
||||
|
||||
#if CONFIG_APOLLOLAKE || CONFIG_CANNONLAKE || CONFIG_ICELAKE || CONFIG_SUECREEK
|
||||
#if CONFIG_CAVS
|
||||
#define MNDSS(x) ((x) << 20)
|
||||
#define MCDSS(x) ((x) << 16)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue