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:
Bartosz Kokoszko 2019-03-28 13:46:41 +01:00 committed by Liam Girdwood
parent 1071076be1
commit 1a89f40b80
1 changed files with 4 additions and 6 deletions

View File

@ -128,8 +128,7 @@ extern const struct dai_ops ssp_ops;
#define SSCR2_ASRC_CNTR_CLR BIT(9) #define SSCR2_ASRC_CNTR_CLR BIT(9)
#define SSCR2_ASRC_FRM_CNRT_EN BIT(10) #define SSCR2_ASRC_FRM_CNRT_EN BIT(10)
#define SSCR2_ASRC_INTR_MASK BIT(11) #define SSCR2_ASRC_INTR_MASK BIT(11)
#elif CONFIG_APOLLOLAKE || CONFIG_CANNONLAKE || CONFIG_ICELAKE || \ #elif CONFIG_CAVS || CONFIG_HASWELL || CONFIG_BROADWELL
CONFIG_SUECREEK || CONFIG_HASWELL || CONFIG_BROADWELL
#define SSCR2_TURM1 BIT(1) #define SSCR2_TURM1 BIT(1)
#define SSCR2_PSPSRWFDFD BIT(3) #define SSCR2_PSPSRWFDFD BIT(3)
#define SSCR2_PSPSTWFDFD BIT(4) #define SSCR2_PSPSTWFDFD BIT(4)
@ -168,7 +167,7 @@ extern const struct dai_ops ssp_ops;
#define SSPSP2 0x44 #define SSPSP2 0x44
#define SSPSP2_FEP_MASK 0xff #define SSPSP2_FEP_MASK 0xff
#if CONFIG_APOLLOLAKE || CONFIG_CANNONLAKE || CONFIG_ICELAKE || CONFIG_SUECREEK #if CONFIG_CAVS
#define SSCR3 0x48 #define SSCR3 0x48
#define SSIOC 0x4C #define SSIOC 0x4C
@ -205,8 +204,7 @@ extern const struct dai_ops ssp_ops;
#define SFIFOL_TFL(x) ((x) & 0xFFFF) #define SFIFOL_TFL(x) ((x) & 0xFFFF)
#define SFIFOL_RFL(x) ((x) >> 16) #define SFIFOL_RFL(x) ((x) >> 16)
#if CONFIG_APOLLOLAKE || CONFIG_CANNONLAKE || CONFIG_SUECREEK \ #if CONFIG_CAVS || CONFIG_HASWELL || CONFIG_BROADWELL
|| CONFIG_ICELAKE || CONFIG_HASWELL || CONFIG_BROADWELL
#define SSTSA_TSEN BIT(8) #define SSTSA_TSEN BIT(8)
#define SSRSA_RSEN BIT(8) #define SSRSA_RSEN BIT(8)
@ -222,7 +220,7 @@ extern const struct dai_ops ssp_ops;
#define SSIOC_SCOE BIT(5) #define SSIOC_SCOE BIT(5)
#endif #endif
#if CONFIG_APOLLOLAKE || CONFIG_CANNONLAKE || CONFIG_ICELAKE || CONFIG_SUECREEK #if CONFIG_CAVS
#define MNDSS(x) ((x) << 20) #define MNDSS(x) ((x) << 20)
#define MCDSS(x) ((x) << 16) #define MCDSS(x) ((x) << 16)
#endif #endif