Move non-GPU xml.h files into the ./registers subdir and add the _shipped suffix. The GPU files are left intact for now, since they require processing via a gen_headers.py, while display headers are regenerated using headergen2 Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> --- drivers/gpu/drm/msm/Makefile | 53 ++++++++++++++++++---- .../{dsi/dsi.xml.h => registers/dsi.xml.h_shipped} | 0 .../dsi_phy_10nm.xml.h_shipped} | 0 .../dsi_phy_14nm.xml.h_shipped} | 0 .../dsi_phy_20nm.xml.h_shipped} | 0 .../dsi_phy_28nm.xml.h_shipped} | 0 .../dsi_phy_28nm_8960.xml.h_shipped} | 0 .../dsi_phy_7nm.xml.h_shipped} | 0 .../hdmi.xml.h => registers/hdmi.xml.h_shipped} | 0 .../mdp4.xml.h => registers/mdp4.xml.h_shipped} | 0 .../mdp5.xml.h => registers/mdp5.xml.h_shipped} | 0 .../mdp_common.xml.h_shipped} | 0 .../sfpb.xml.h => registers/sfpb.xml.h_shipped} | 0 13 files changed, 43 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/msm/Makefile b/drivers/gpu/drm/msm/Makefile index 543e04fa72e3..89c9f5f93b85 100644 --- a/drivers/gpu/drm/msm/Makefile +++ b/drivers/gpu/drm/msm/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 ccflags-y := -I $(srctree)/$(src) +ccflags-y := -I $(obj)/registers ccflags-y += -I $(srctree)/$(src)/disp/dpu1 ccflags-$(CONFIG_DRM_MSM_DSI) += -I $(srctree)/$(src)/dsi ccflags-$(CONFIG_DRM_MSM_DP) += -I $(srctree)/$(src)/dp @@ -17,7 +18,7 @@ msm-y := \ adreno/a6xx_gmu.o \ adreno/a6xx_hfi.o \ -msm-$(CONFIG_DRM_MSM_HDMI) += \ +msm-hdmi += \ hdmi/hdmi.o \ hdmi/hdmi_audio.o \ hdmi/hdmi_bridge.o \ @@ -30,7 +31,11 @@ msm-$(CONFIG_DRM_MSM_HDMI) += \ hdmi/hdmi_phy_8x74.o \ hdmi/hdmi_pll_8960.o \ -msm-$(CONFIG_DRM_MSM_MDP4) += \ +msm-$(CONFIG_DRM_MSM_HDMI) += $(msm-hdmi) + +$(addprefix $(obj)/,$(msm-hdmi)): $(obj)/registers/hdmi.xml.h + +msm-mdp4 += \ disp/mdp4/mdp4_crtc.o \ disp/mdp4/mdp4_dsi_encoder.o \ disp/mdp4/mdp4_dtv_encoder.o \ @@ -41,7 +46,12 @@ msm-$(CONFIG_DRM_MSM_MDP4) += \ disp/mdp4/mdp4_kms.o \ disp/mdp4/mdp4_plane.o \ -msm-$(CONFIG_DRM_MSM_MDP5) += \ +msm-$(CONFIG_DRM_MSM_MDP4) += $(msm-mdp4) + +$(addprefix $(obj)/,$(msm-mdp4)): $(obj)/registers/mdp4.xml.h +$(addprefix $(obj)/,$(msm-mdp4)): $(obj)/registers/mdp_common.xml.h + +msm-mdp5 += \ disp/mdp5/mdp5_cfg.o \ disp/mdp5/mdp5_cmd_encoder.o \ disp/mdp5/mdp5_ctl.o \ @@ -54,6 +64,10 @@ msm-$(CONFIG_DRM_MSM_MDP5) += \ disp/mdp5/mdp5_plane.o \ disp/mdp5/mdp5_smp.o \ +msm-$(CONFIG_DRM_MSM_MDP5) += $(msm-mdp5) +$(addprefix $(obj)/,$(msm-mdp5)): $(obj)/registers/mdp5.xml.h +$(addprefix $(obj)/,$(msm-mdp5)): $(obj)/registers/mdp_common.xml.h + msm-$(CONFIG_DRM_MSM_DPU) += \ disp/dpu1/dpu_core_perf.o \ disp/dpu1/dpu_crtc.o \ @@ -115,6 +129,9 @@ msm-y += \ msm_gpu_tracepoints.o \ msm_gpummu.o +$(obj)/disp/mdp_format.o: $(obj)/registers/mdp_common.xml.h +$(obj)/disp/mdp_kms.o: $(obj)/registers/mdp_common.xml.h + msm-$(CONFIG_DEBUG_FS) += adreno/a5xx_debugfs.o \ dp/dp_debug.o @@ -133,17 +150,33 @@ msm-$(CONFIG_DRM_FBDEV_EMULATION) += msm_fbdev.o msm-$(CONFIG_DRM_MSM_HDMI_HDCP) += hdmi/hdmi_hdcp.o -msm-$(CONFIG_DRM_MSM_DSI) += dsi/dsi.o \ +msm-dsi += dsi/dsi.o \ dsi/dsi_cfg.o \ dsi/dsi_host.o \ dsi/dsi_manager.o \ dsi/phy/dsi_phy.o -msm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/phy/dsi_phy_28nm.o -msm-$(CONFIG_DRM_MSM_DSI_20NM_PHY) += dsi/phy/dsi_phy_20nm.o -msm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/phy/dsi_phy_28nm_8960.o -msm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/phy/dsi_phy_14nm.o -msm-$(CONFIG_DRM_MSM_DSI_10NM_PHY) += dsi/phy/dsi_phy_10nm.o -msm-$(CONFIG_DRM_MSM_DSI_7NM_PHY) += dsi/phy/dsi_phy_7nm.o +$(obj)/dsi/dsi_host.o: $(obj)/registers/sfpb.xml.h + +msm-dsi-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/phy/dsi_phy_28nm.o +$(obj)/dsi/phy/dsi_phy_28nm.o: $(obj)/registers/dsi_phy_28nm.xml.h + +msm-dsi-$(CONFIG_DRM_MSM_DSI_20NM_PHY) += dsi/phy/dsi_phy_20nm.o +$(obj)/dsi/phy/dsi_phy_20nm.o: $(obj)/registers/dsi_phy_20nm.xml.h + +msm-dsi-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/phy/dsi_phy_28nm_8960.o +$(obj)/dsi/phy/dsi_phy_28nm_8960.o: $(obj)/registers/dsi_phy_28nm_8960.xml.h + +msm-dsi-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/phy/dsi_phy_14nm.o +$(obj)/dsi/phy/dsi_phy_14nm.o: $(obj)/registers/dsi_phy_14nm.xml.h + +msm-dsi-$(CONFIG_DRM_MSM_DSI_10NM_PHY) += dsi/phy/dsi_phy_10nm.o +$(obj)/dsi/phy/dsi_phy_10nm.o: $(obj)/registers/dsi_phy_10nm.xml.h + +msm-dsi-$(CONFIG_DRM_MSM_DSI_7NM_PHY) += dsi/phy/dsi_phy_7nm.o +$(obj)/dsi/phy/dsi_phy_7nm.o: $(obj)/registers/dsi_phy_7nm.xml.h + +msm-$(CONFIG_DRM_MSM_DSI) += $(msm-dsi) $(msm-dsi-y) +$(addprefix $(obj)/,$(msm-dsi) $(msm-dsi-y)): $(obj)/registers/dsi.xml.h obj-$(CONFIG_DRM_MSM) += msm.o diff --git a/drivers/gpu/drm/msm/dsi/dsi.xml.h b/drivers/gpu/drm/msm/registers/dsi.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/dsi/dsi.xml.h rename to drivers/gpu/drm/msm/registers/dsi.xml.h_shipped diff --git a/drivers/gpu/drm/msm/dsi/dsi_phy_10nm.xml.h b/drivers/gpu/drm/msm/registers/dsi_phy_10nm.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/dsi/dsi_phy_10nm.xml.h rename to drivers/gpu/drm/msm/registers/dsi_phy_10nm.xml.h_shipped diff --git a/drivers/gpu/drm/msm/dsi/dsi_phy_14nm.xml.h b/drivers/gpu/drm/msm/registers/dsi_phy_14nm.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/dsi/dsi_phy_14nm.xml.h rename to drivers/gpu/drm/msm/registers/dsi_phy_14nm.xml.h_shipped diff --git a/drivers/gpu/drm/msm/dsi/dsi_phy_20nm.xml.h b/drivers/gpu/drm/msm/registers/dsi_phy_20nm.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/dsi/dsi_phy_20nm.xml.h rename to drivers/gpu/drm/msm/registers/dsi_phy_20nm.xml.h_shipped diff --git a/drivers/gpu/drm/msm/dsi/dsi_phy_28nm.xml.h b/drivers/gpu/drm/msm/registers/dsi_phy_28nm.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/dsi/dsi_phy_28nm.xml.h rename to drivers/gpu/drm/msm/registers/dsi_phy_28nm.xml.h_shipped diff --git a/drivers/gpu/drm/msm/dsi/dsi_phy_28nm_8960.xml.h b/drivers/gpu/drm/msm/registers/dsi_phy_28nm_8960.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/dsi/dsi_phy_28nm_8960.xml.h rename to drivers/gpu/drm/msm/registers/dsi_phy_28nm_8960.xml.h_shipped diff --git a/drivers/gpu/drm/msm/dsi/dsi_phy_7nm.xml.h b/drivers/gpu/drm/msm/registers/dsi_phy_7nm.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/dsi/dsi_phy_7nm.xml.h rename to drivers/gpu/drm/msm/registers/dsi_phy_7nm.xml.h_shipped diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.xml.h b/drivers/gpu/drm/msm/registers/hdmi.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/hdmi/hdmi.xml.h rename to drivers/gpu/drm/msm/registers/hdmi.xml.h_shipped diff --git a/drivers/gpu/drm/msm/disp/mdp4/mdp4.xml.h b/drivers/gpu/drm/msm/registers/mdp4.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/disp/mdp4/mdp4.xml.h rename to drivers/gpu/drm/msm/registers/mdp4.xml.h_shipped diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5.xml.h b/drivers/gpu/drm/msm/registers/mdp5.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/disp/mdp5/mdp5.xml.h rename to drivers/gpu/drm/msm/registers/mdp5.xml.h_shipped diff --git a/drivers/gpu/drm/msm/disp/mdp_common.xml.h b/drivers/gpu/drm/msm/registers/mdp_common.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/disp/mdp_common.xml.h rename to drivers/gpu/drm/msm/registers/mdp_common.xml.h_shipped diff --git a/drivers/gpu/drm/msm/dsi/sfpb.xml.h b/drivers/gpu/drm/msm/registers/sfpb.xml.h_shipped similarity index 100% rename from drivers/gpu/drm/msm/dsi/sfpb.xml.h rename to drivers/gpu/drm/msm/registers/sfpb.xml.h_shipped -- 2.39.2