]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move the dg2 fixed_enable_delay power well param to a common bitfield
authorImre Deak <imre.deak@intel.com>
Thu, 14 Apr 2022 21:06:43 +0000 (00:06 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 20 Apr 2022 17:42:11 +0000 (20:42 +0300)
commitfafa3ac641a3e4f594d9757debe859aed6e518f9
tree03ebbcac67caf3a61bac72e66fb3cfa72c09d286
parente18e1af49ccf91a2c47456b8d7b99b3fd4ad71e5
drm/i915: Move the dg2 fixed_enable_delay power well param to a common bitfield

The DG2 fixed delay duration is always 600usec, so save some space in
the power well descriptors by converting the parameter to a flag. While
at it also use a bitfield for both the always_on and fixed_enable_delay
flag.

This change also lets simplifying the definiton of power wells sharing
the same flags in an upcoming patch.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220414210657.1785773-4-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display_power_map.c
drivers/gpu/drm/i915/display/intel_display_power_well.c
drivers/gpu/drm/i915/display/intel_display_power_well.h