gt/intel_workarounds.c is decidedly the wrong place for handling stepping info. Add new intel_step.[ch] for the data, and move the stepping arrays there. No functional changes. v2: Rename stepping->step Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/f69baf82819a8a35815fca25a520de5c38a7e1b5.1616764798.git.jani.nikula@intel.com
26 lines
685 B
C
26 lines
685 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2020,2021 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_STEP_H__
|
|
#define __INTEL_STEP_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct i915_rev_steppings {
|
|
u8 gt_stepping;
|
|
u8 disp_stepping;
|
|
};
|
|
|
|
#define TGL_UY_REVID_STEP_TBL_SIZE 4
|
|
#define TGL_REVID_STEP_TBL_SIZE 2
|
|
#define ADLS_REVID_STEP_TBL_SIZE 13
|
|
|
|
extern const struct i915_rev_steppings kbl_revids[];
|
|
extern const struct i915_rev_steppings tgl_uy_revid_step_tbl[TGL_UY_REVID_STEP_TBL_SIZE];
|
|
extern const struct i915_rev_steppings tgl_revid_step_tbl[TGL_REVID_STEP_TBL_SIZE];
|
|
extern const struct i915_rev_steppings adls_revid_step_tbl[ADLS_REVID_STEP_TBL_SIZE];
|
|
|
|
#endif /* __INTEL_STEP_H__ */
|