]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/icl: use ranges for voltage level lookup
authorLucas De Marchi <lucas.demarchi@intel.com>
Mon, 10 Jun 2019 21:48:19 +0000 (14:48 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 11 Jun 2019 19:41:38 +0000 (12:41 -0700)
commit3b754acfc48074c573566fbe7477af1b93bf1e6f
tree90726db9d2abff0cd9fe54b566f632ed86d86014
parent99fbeb8181b17cf4e47ebd2dd39bb54054ab010c
drm/i915/icl: use ranges for voltage level lookup

Spec shows voltage level 0 as 307.2, 312, or lower and suggests to use
range checks. Prepare for having other frequencies in these ranges by
not comparing the exact frequency.

v2: invert checks by comparing biggest cdclk first (suggested by Ville)

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190610214819.9703-1-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_cdclk.c