On Mon, Nov 03, 2025 at 02:18:19PM -0300, Gustavo Sousa wrote: > We will need to HAS_LT_PHY() that macro in code outside of LT PHY > implementation. Move its definition to intel_display_device.h. > > Cc: Matt Roper <[email protected]> > Cc: Suraj Kandpal <[email protected]> > Signed-off-by: Gustavo Sousa <[email protected]>
Reviewed-by: Matt Roper <[email protected]> > --- > drivers/gpu/drm/i915/display/intel_display_device.h | 1 + > drivers/gpu/drm/i915/display/intel_lt_phy.h | 2 -- > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_display_device.h > b/drivers/gpu/drm/i915/display/intel_display_device.h > index 4da4b1e3d817..df464eb0be7f 100644 > --- a/drivers/gpu/drm/i915/display/intel_display_device.h > +++ b/drivers/gpu/drm/i915/display/intel_display_device.h > @@ -187,6 +187,7 @@ struct intel_display_platforms { > #define HAS_IPS(__display) ((__display)->platform.haswell_ult || > (__display)->platform.broadwell) > #define HAS_LRR(__display) (DISPLAY_VER(__display) >= 12) > #define HAS_LSPCON(__display) (IS_DISPLAY_VER(__display, 9, > 10)) > +#define HAS_LT_PHY(__display) ((__display)->platform.novalake) > #define HAS_MBUS_JOINING(__display) ((__display)->platform.alderlake_p || > DISPLAY_VER(__display) >= 14) > #define HAS_MSO(__display) (DISPLAY_VER(__display) >= 12) > #define HAS_OVERLAY(__display) > (DISPLAY_INFO(__display)->has_overlay) > diff --git a/drivers/gpu/drm/i915/display/intel_lt_phy.h > b/drivers/gpu/drm/i915/display/intel_lt_phy.h > index 034c20c66baf..e52aadfbdf93 100644 > --- a/drivers/gpu/drm/i915/display/intel_lt_phy.h > +++ b/drivers/gpu/drm/i915/display/intel_lt_phy.h > @@ -39,6 +39,4 @@ void intel_xe3plpd_pll_enable(struct intel_encoder *encoder, > const struct intel_crtc_state *crtc_state); > void intel_xe3plpd_pll_disable(struct intel_encoder *encoder); > > -#define HAS_LT_PHY(display) ((display)->platform.novalake) > - > #endif /* __INTEL_LT_PHY_H__ */ > > -- > 2.51.0 > -- Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation
