Skip to content

Commit 3a044ae

Browse files
plbossartaescolar
authored andcommitted
drivers: dai: ssp: fix MN_MDIVCTRL_M_DIV_ENABLE for ACE+ platform
In previous generations, each MCLK divider could be enabled separately. Starting with ACE, there is a single-bit MDE field to enable a single divider. The existing code would not enable MDE in case MCLK1 is used. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 61901a9 commit 3a044ae

File tree

1 file changed

+11
-2
lines changed
  • drivers/dai/intel/ssp

1 file changed

+11
-2
lines changed

drivers/dai/intel/ssp/ssp.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,23 @@
244244

245245
/** \brief Offset of MCLK Divider x Ratio Register. */
246246
#define MN_MDIVR(x) (0x180 + (x) * 0x4)
247+
248+
/** \brief Enables the output of MCLK Divider.
249+
* On ACE+ there is a single divider for all MCLKs
250+
*/
251+
#define MN_MDIVCTRL_M_DIV_ENABLE(x) BIT(0)
252+
247253
#else
248254
#define MN_MDIVCTRL 0x0
249255
#define MN_MDIVR(x) (0x80 + (x) * 0x4)
250-
#endif
251256

252-
/** \brief Enables the output of MCLK Divider. */
257+
/** \brief Enables the output of MCLK Divider.
258+
* Each MCLK divider can be enabled separately.
259+
*/
253260
#define MN_MDIVCTRL_M_DIV_ENABLE(x) BIT(x)
254261

262+
#endif
263+
255264
/** \brief Bits for setting MCLK source clock. */
256265
#define MCDSS(x) DAI_INTEL_SSP_SET_BITS(17, 16, x)
257266

0 commit comments

Comments
 (0)