Skip to content

Commit 62b01ff

Browse files
abonislawskifabiobaltieri
authored andcommitted
drivers: dai: ssp: fix mdivr register for ACE platform
Set correct offsets for CAVS&ACE Signed-off-by: Adrian Bonislawski <[email protected]>
1 parent 0217c39 commit 62b01ff

File tree

1 file changed

+8
-3
lines changed
  • drivers/dai/intel/ssp

1 file changed

+8
-3
lines changed

drivers/dai/intel/ssp/ssp.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,20 @@
223223
#define SHIM_CLKCTL_I2SFDCGB(x) BIT(20 + x)
224224
#define SHIM_CLKCTL_I2SEFDCGB(x) BIT(18 + x)
225225

226+
#ifdef CONFIG_SOC_SERIES_INTEL_ACE
226227
/** \brief Offset of MCLK Divider Control Register. */
228+
#define MN_MDIVCTRL 0x100
229+
230+
/** \brief Offset of MCLK Divider x Ratio Register. */
231+
#define MN_MDIVR(x) (0x180 + (x) * 0x4)
232+
#else
227233
#define MN_MDIVCTRL 0x0
234+
#define MN_MDIVR(x) (0x80 + (x) * 0x4)
235+
#endif
228236

229237
/** \brief Enables the output of MCLK Divider. */
230238
#define MN_MDIVCTRL_M_DIV_ENABLE(x) BIT(x)
231239

232-
/** \brief Offset of MCLK Divider x Ratio Register. */
233-
#define MN_MDIVR(x) (0x80 + (x) * 0x4)
234-
235240
/** \brief Bits for setting MCLK source clock. */
236241
#define MCDSS(x) DAI_INTEL_SSP_SET_BITS(17, 16, x)
237242

0 commit comments

Comments
 (0)