Skip to content

Commit 3d1da92

Browse files
committed
drm/i915: Add 324mhz and 326.4mhz cdclks for gen11+
The bspec was recently updated with these new cdclk values for ICL, EHL, and TGL. Bspec: 20598 Bspec: 49201 Cc: José Roberto de Souza <[email protected]> Cc: Lucas De Marchi <[email protected]> Signed-off-by: Matt Roper <[email protected]> Reviewed-by: José Roberto de Souza <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 385ba62 commit 3d1da92

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/gpu/drm/i915/display/intel_cdclk.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,8 +1761,10 @@ static void cnl_sanitize_cdclk(struct drm_i915_private *dev_priv)
17611761

17621762
static int icl_calc_cdclk(int min_cdclk, unsigned int ref)
17631763
{
1764-
static const int ranges_24[] = { 180000, 192000, 312000, 552000, 648000 };
1765-
static const int ranges_19_38[] = { 172800, 192000, 307200, 556800, 652800 };
1764+
static const int ranges_24[] = { 180000, 192000, 312000, 324000,
1765+
552000, 648000 };
1766+
static const int ranges_19_38[] = { 172800, 192000, 307200, 326400,
1767+
556800, 652800 };
17661768
const int *ranges;
17671769
int len, i;
17681770

@@ -1803,13 +1805,15 @@ static int icl_calc_cdclk_pll_vco(struct drm_i915_private *dev_priv, int cdclk)
18031805
/* fall through */
18041806
case 172800:
18051807
case 307200:
1808+
case 326400:
18061809
case 556800:
18071810
case 652800:
18081811
WARN_ON(dev_priv->cdclk.hw.ref != 19200 &&
18091812
dev_priv->cdclk.hw.ref != 38400);
18101813
break;
18111814
case 180000:
18121815
case 312000:
1816+
case 324000:
18131817
case 552000:
18141818
case 648000:
18151819
WARN_ON(dev_priv->cdclk.hw.ref != 24000);

0 commit comments

Comments
 (0)