[Intel-gfx] [PATCH 3/9] drm/i915: Clean up SKL_BOTTOM_COLOR defines
Jani Nikula
jani.nikula at linux.intel.com
Wed Jan 26 14:21:02 UTC 2022
On Fri, 12 Nov 2021, Ville Syrjala <ville.syrjala at linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Use REG_BIT() for SKL_BOTTOM_COLOR.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula at intel.com>
> ---
> drivers/gpu/drm/i915/i915_reg.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index e300a202ce2d..8b227dabb10c 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -6341,8 +6341,8 @@ enum {
>
> /* Skylake+ pipe bottom (background) color */
> #define _SKL_BOTTOM_COLOR_A 0x70034
> -#define SKL_BOTTOM_COLOR_GAMMA_ENABLE (1 << 31)
> -#define SKL_BOTTOM_COLOR_CSC_ENABLE (1 << 30)
> +#define SKL_BOTTOM_COLOR_GAMMA_ENABLE REG_BIT(31)
> +#define SKL_BOTTOM_COLOR_CSC_ENABLE REG_BIT(30)
> #define SKL_BOTTOM_COLOR(pipe) _MMIO_PIPE2(pipe, _SKL_BOTTOM_COLOR_A)
>
> #define _ICL_PIPE_A_STATUS 0x70058
--
Jani Nikula, Intel Open Source Graphics Center
More information about the Intel-gfx
mailing list