]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dg1: Initialize RAWCLK properly
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 7 Oct 2020 00:22:04 +0000 (17:22 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 7 Oct 2020 20:51:19 +0000 (13:51 -0700)
commit27a6bc802bd90a08960f716e48693420226f1d03
tree8de122b12fdd3b56b0ab269a66d13fe336b76acb
parentb50b7991b739c6d63658e3324a01eaa0fafe8b7f
drm/i915/dg1: Initialize RAWCLK properly

DG1 always uses a 38.4 MHz rawclk rather than the 19.2/24 MHz
frequencies on CNP+.  Note that register bits associated with this
frequency confusingly use 37 for the divider field rather than 38 as you
might expect.

For simplicity, let's just assume that this 38.4 MHz frequency will hold
true for other future platforms with "fake" PCH south displays and that
the CNP-style behavior will remain for other platforms with a real PCH.

Bspec: 49950
Bspec: 49309
Cc: Aditya Swarup <aditya.swarup@intel.com>
Cc: Clinton Taylor <Clinton.A.Taylor@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201007002210.3678024-2-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_cdclk.c