drm/i915: convert _MMIO_PIPE3()/_MMIO_PORT3() to accept base
authorJani Nikula <jani.nikula@intel.com>
Tue, 23 Apr 2024 16:44:59 +0000 (19:44 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 25 Apr 2024 08:23:19 +0000 (11:23 +0300)
commit7322aeddfffc77cd04bc290dc352d13642b89738
treef3f0aead084b920a3246b0359cc3dd92a5e36a52
parent6068bc209ac8d07a5d04e93f168465195e22a4cc
drm/i915: convert _MMIO_PIPE3()/_MMIO_PORT3() to accept base

Most users of _MMIO_PIPE3() and _MMIO_PORT3() need to add the MMIO base
to the registers. Convert the macros to _MMIO_BASE_PIPE3() and
_MMIO_BASE_PORT3() to move the base addition until after the register
selection. If the register address depends on DISPLAY_MMIO_BASE(), this
removes the need to figure the base out for each register, and it only
needs to be added once.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/4b95f125f5021abc00b5fc661b2728f1b583c01e.1713890614.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display_reg_defs.h
drivers/gpu/drm/i915/i915_reg.h