]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/i915: Add PLANE_CHICKEN registers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Mar 2023 09:05:20 +0000 (11:05 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 24 Mar 2023 15:15:11 +0000 (17:15 +0200)
Define the PLANE_CHICKEN register offsets.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230320090522.9909-5-ville.syrjala@linux.intel.com
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
drivers/gpu/drm/i915/i915_reg.h

index ce7dec4c24f22131acf957021a2d2e44a04f0969..86a8860e610b240e5104672fe47d1483e190cfb7 100644 (file)
 #define   PLANE_COLOR_ALPHA_DISABLE                    REG_FIELD_PREP(PLANE_COLOR_ALPHA_MASK, 0)
 #define   PLANE_COLOR_ALPHA_SW_PREMULTIPLY             REG_FIELD_PREP(PLANE_COLOR_ALPHA_MASK, 2)
 #define   PLANE_COLOR_ALPHA_HW_PREMULTIPLY             REG_FIELD_PREP(PLANE_COLOR_ALPHA_MASK, 3)
+#define _PLANE_CHICKEN_1_A                     0x7026C
+#define _PLANE_CHICKEN_2_A                     0x7036C
 #define _PLANE_BUF_CFG_1_A                     0x7027c
 #define _PLANE_BUF_CFG_2_A                     0x7037c
 #define _PLANE_NV12_BUF_CFG_1_A                0x70278
 #define PLANE_SURFLIVE(pipe, plane)    \
        _MMIO_PLANE(plane, _PLANE_SURFLIVE_1(pipe), _PLANE_SURFLIVE_2(pipe))
 
+#define _PLANE_CHICKEN_1_B                     0x7126c
+#define _PLANE_CHICKEN_2_B                     0x7136c
+#define _PLANE_CHICKEN_1(pipe) _PIPE(pipe, _PLANE_CHICKEN_1_A, _PLANE_CHICKEN_1_B)
+#define _PLANE_CHICKEN_2(pipe) _PIPE(pipe, _PLANE_CHICKEN_2_A, _PLANE_CHICKEN_2_B)
+#define PLANE_CHICKEN(pipe, plane) \
+       _MMIO_PLANE(plane, _PLANE_CHICKEN_1(pipe), _PLANE_CHICKEN_2(pipe))
+
 #define _PLANE_BUF_CFG_1_B                     0x7127c
 #define _PLANE_BUF_CFG_2_B                     0x7137c
 /* skl+: 10 bits, icl+ 11 bits, adlp+ 12 bits */