Skip to content

Commit 613716b

Browse files
mikuintickle
authored andcommitted
drm/i915/tgl: Add IS_TGL_REVID
We are going to need this macro on limiting the workaround scope. Signed-off-by: Mika Kuoppala <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent da5d2ca commit 613716b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/i915/i915_drv.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,11 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
16861686
#define IS_ICL_REVID(p, since, until) \
16871687
(IS_ICELAKE(p) && IS_REVID(p, since, until))
16881688

1689+
#define TGL_REVID_A0 0x0
1690+
1691+
#define IS_TGL_REVID(p, since, until) \
1692+
(IS_TIGERLAKE(p) && IS_REVID(p, since, until))
1693+
16891694
#define IS_LP(dev_priv) (INTEL_INFO(dev_priv)->is_lp)
16901695
#define IS_GEN9_LP(dev_priv) (IS_GEN(dev_priv, 9) && IS_LP(dev_priv))
16911696
#define IS_GEN9_BC(dev_priv) (IS_GEN(dev_priv, 9) && !IS_LP(dev_priv))

0 commit comments

Comments
 (0)