drm/i915/cdclk: Extract bxt_cdclk_ctl()
authorGustavo Sousa <gustavo.sousa@intel.com>
Fri, 5 Jan 2024 14:05:36 +0000 (11:05 -0300)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 8 Jan 2024 18:55:45 +0000 (10:55 -0800)
commit7af2f3e55c1ec09bfa04963f4a8d0ef052be22bb
treea655bd0759c7a52223f1e9124a1b2398e4ad1053
parentbdb7a38a8f409cdc3acdfc1935d09e31735e3ab4
drm/i915/cdclk: Extract bxt_cdclk_ctl()

Extract logic for deriving the value for CDCLK_CTL into bxt_cdclk_ctl().
This makes the code better readable and will be used later in
bxt_sanitize_cdclk().

v2:
  - Improve body of commit message to be more self-contained.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240105140538.183553-3-gustavo.sousa@intel.com
drivers/gpu/drm/i915/display/intel_cdclk.c