Skip to content

Commit

Permalink
drivers: dai: ssp: fix power-up flow for Intel cAVS platforms
Browse files Browse the repository at this point in the history
A recent commit broke the power-up sequences for other Intel
platforms.

Fixes: 1e5550d ("intel_adsp: ace20_lnl: ssp: Program new HW registers")
Signed-off-by: Kai Vehmanen <[email protected]>
  • Loading branch information
kv2019i authored and nashif committed Apr 21, 2023
1 parent 6403c94 commit e59e65d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/dai/intel/ssp/ssp.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,18 @@

#define I2SLCTL_OFFSET 0x04

#ifdef CONFIG_SOC_INTEL_ACE15_MTPM
#if defined(CONFIG_SOC_INTEL_ACE15_MTPM) || defined(CONFIG_SOC_SERIES_INTEL_ADSP_CAVS)
#define I2SLCTL_SPA(x) BIT(0 + x)
#define I2SLCTL_CPA(x) BIT(8 + x)
#else /* CONFIG_SOC_INTEL_ACE20_LNL */
#elif defined(CONFIG_SOC_INTEL_ACE20_LNL)
#define I2SLCTL_OFLEN BIT(4)
#define I2SLCTL_SPA(x) BIT(16 + x)
#define I2SLCTL_CPA(x) BIT(23 + x)
#define PCMS0CM_OFFSET 0x16
#define PCMS1CM_OFFSET 0x1A
#endif /* CONFIG_SOC_INTEL_ACE15_MTPM */
#else
#error "Missing ssp definitions"
#endif

#define I2CLCTL_MLCS(x) DAI_INTEL_SSP_SET_BITS(30, 27, x)
#define SHIM_CLKCTL 0x78
Expand Down

0 comments on commit e59e65d

Please sign in to comment.