Commit 3a044aea authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Alberto Escolar
Browse files

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: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
parent 61901a90
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -244,14 +244,23 @@

/** \brief Offset of MCLK Divider x Ratio Register. */
#define MN_MDIVR(x) (0x180 + (x) * 0x4)

/** \brief Enables the output of MCLK Divider.
 *  On ACE+ there is a single divider for all MCLKs
 */
#define MN_MDIVCTRL_M_DIV_ENABLE(x) BIT(0)

#else
#define MN_MDIVCTRL 0x0
#define MN_MDIVR(x) (0x80 + (x) * 0x4)
#endif

/** \brief Enables the output of MCLK Divider. */
/** \brief Enables the output of MCLK Divider.
 * Each MCLK divider can be enabled separately.
 */
#define MN_MDIVCTRL_M_DIV_ENABLE(x) BIT(x)

#endif

/** \brief Bits for setting MCLK source clock. */
#define MCDSS(x)	DAI_INTEL_SSP_SET_BITS(17, 16, x)