OSDN Git Service

drm/i915: Allow platforms to share power well descriptors
authorImre Deak <imre.deak@intel.com>
Thu, 14 Apr 2022 21:06:50 +0000 (00:06 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 20 Apr 2022 17:42:12 +0000 (20:42 +0300)
commita6394dbbe21e5966e688dde24cc8fa5d0b44b346
treee5a9dda78391fcce5170df16884b23dadd246881
parent4a845ff0c0d445556ec9e32073ac6cf0cd66e117
drm/i915: Allow platforms to share power well descriptors

Some power wells - like always-on and skl+/icl+ PW_1 - with the same
name, domain list, flags, ops are used by multiple platforms, so allow
platforms to reuse the descriptors of such power wells.

This change also lets the follow up patches to simplify the DG1/RKL
power well definitions, and remove the ADL-S skip_mask special casing.

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-11-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display_power_map.c