OSDN Git Service

drm/i915: Move the power domain->well mappings to intel_display_power_map.c
authorImre Deak <imre.deak@intel.com>
Thu, 14 Apr 2022 21:06:42 +0000 (00:06 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 20 Apr 2022 17:41:57 +0000 (20:41 +0300)
commit323286c81245b3ee31f495367e51d9ee8431bf13
treed13fcfb470420bbe1ca43db15dd2cc9d55cf6aec
parentac78f31b2f83637e24a044f62a60df7de1c0d7c9
drm/i915: Move the power domain->well mappings to intel_display_power_map.c

Move the list of platform specific power domain -> power well
definitions to intel_display_power_map.c. While at it group the
platforms' power domain macros with the corresponding power well lists
and keep all the power domain lists in the same order (matching the enum
order).

No functional changes.

v2:
- s/intel_display_power_internal.h/intel_display_power_map.h/ (Jani)
- Simplify intel_cleanup_power_wells().
- Don't move intel_display_power_domain_str().
v3:
- Rename intel_init/cleanup_power_wells() to
  intel_display_power_map_init/cleanup().
- Add documentation to intel_display_power_map_init/cleanup().

Cc: Jani Nikula <jani.nikula@intel.com>
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-3-imre.deak@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_display_power_map.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_display_power_map.h [new file with mode: 0644]