drm/i915/step: Add macro magic for handling steps
authorAnusha Srivatsa <anusha.srivatsa@intel.com>
Wed, 21 Jul 2021 21:52:35 +0000 (14:52 -0700)
committerAnusha Srivatsa <anusha.srivatsa@intel.com>
Thu, 22 Jul 2021 17:18:06 +0000 (10:18 -0700)
commite631a440c03c658eab1159ddc701d5a579f9c5b3
treeb44bdb8082e4f1f1d20163bd9171bb093b390852
parent34ba3c8a7d8ef378f4244f539978a95e38157aa6
drm/i915/step: Add macro magic for handling steps

With the addition of stepping info for
all platforms, lets use macros for handling them
and autogenerating code for all steps at a time.

Suggested-by: Matt Roper <matthew.d.roper@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210721215238.24980-1-anusha.srivatsa@intel.com
drivers/gpu/drm/i915/intel_step.c
drivers/gpu/drm/i915/intel_step.h