17eb186bbSJani Nikula /* SPDX-License-Identifier: MIT */ 27eb186bbSJani Nikula /* 37eb186bbSJani Nikula * Copyright © 2020,2021 Intel Corporation 47eb186bbSJani Nikula */ 57eb186bbSJani Nikula 67eb186bbSJani Nikula #ifndef __INTEL_STEP_H__ 77eb186bbSJani Nikula #define __INTEL_STEP_H__ 87eb186bbSJani Nikula 97eb186bbSJani Nikula #include <linux/types.h> 107eb186bbSJani Nikula 117eb186bbSJani Nikula struct i915_rev_steppings { 127eb186bbSJani Nikula u8 gt_stepping; 137eb186bbSJani Nikula u8 disp_stepping; 147eb186bbSJani Nikula }; 157eb186bbSJani Nikula 167eb186bbSJani Nikula #define TGL_UY_REVID_STEP_TBL_SIZE 4 177eb186bbSJani Nikula #define TGL_REVID_STEP_TBL_SIZE 2 187eb186bbSJani Nikula #define ADLS_REVID_STEP_TBL_SIZE 13 197eb186bbSJani Nikula 207eb186bbSJani Nikula extern const struct i915_rev_steppings kbl_revids[]; 217eb186bbSJani Nikula extern const struct i915_rev_steppings tgl_uy_revid_step_tbl[TGL_UY_REVID_STEP_TBL_SIZE]; 227eb186bbSJani Nikula extern const struct i915_rev_steppings tgl_revid_step_tbl[TGL_REVID_STEP_TBL_SIZE]; 237eb186bbSJani Nikula extern const struct i915_rev_steppings adls_revid_step_tbl[ADLS_REVID_STEP_TBL_SIZE]; 247eb186bbSJani Nikula 25*439c8dccSJani Nikula /* 26*439c8dccSJani Nikula * Symbolic steppings that do not match the hardware. These are valid both as gt 27*439c8dccSJani Nikula * and display steppings as symbolic names. 28*439c8dccSJani Nikula */ 29*439c8dccSJani Nikula enum intel_step { 30*439c8dccSJani Nikula STEP_NONE = 0, 31*439c8dccSJani Nikula STEP_A0, 32*439c8dccSJani Nikula STEP_A2, 33*439c8dccSJani Nikula STEP_B0, 34*439c8dccSJani Nikula STEP_B1, 35*439c8dccSJani Nikula STEP_C0, 36*439c8dccSJani Nikula STEP_D0, 37*439c8dccSJani Nikula }; 38*439c8dccSJani Nikula 397eb186bbSJani Nikula #endif /* __INTEL_STEP_H__ */ 40