forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/gpu/drm/amd/display/dc/Makefile
....@@ -23,10 +23,17 @@
2323 # Makefile for Display Core (dc) component.
2424 #
2525
26
-DC_LIBS = basics bios calcs dce gpio i2caux irq virtual
26
+DC_LIBS = basics bios calcs clk_mgr dce gpio irq virtual
2727
28
-ifdef CONFIG_DRM_AMD_DC_DCN1_0
28
+ifdef CONFIG_DRM_AMD_DC_DCN
29
+DC_LIBS += dcn20
30
+DC_LIBS += dsc
2931 DC_LIBS += dcn10 dml
32
+DC_LIBS += dcn21
33
+endif
34
+
35
+ifdef CONFIG_DRM_AMD_DC_DCN3_0
36
+DC_LIBS += dcn30
3037 endif
3138
3239 DC_LIBS += dce120
....@@ -36,12 +43,24 @@
3643 DC_LIBS += dce100
3744 DC_LIBS += dce80
3845
46
+ifdef CONFIG_DRM_AMD_DC_SI
47
+DC_LIBS += dce60
48
+endif
49
+
50
+ifdef CONFIG_DRM_AMD_DC_HDCP
51
+DC_LIBS += hdcp
52
+endif
53
+
3954 AMD_DC = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/dc/,$(DC_LIBS)))
4055
4156 include $(AMD_DC)
4257
4358 DISPLAY_CORE = dc.o dc_link.o dc_resource.o dc_hw_sequencer.o dc_sink.o \
4459 dc_surface.o dc_link_hwss.o dc_link_dp.o dc_link_ddc.o dc_debug.o dc_stream.o
60
+
61
+ifdef CONFIG_DRM_AMD_DC_DCN
62
+DISPLAY_CORE += dc_vm_helper.o
63
+endif
4564
4665 AMD_DISPLAY_CORE = $(addprefix $(AMDDALPATH)/dc/core/,$(DISPLAY_CORE))
4766
....@@ -50,5 +69,6 @@
5069 AMD_DISPLAY_FILES += $(AMD_DISPLAY_CORE)
5170 AMD_DISPLAY_FILES += $(AMD_DM_REG_UPDATE)
5271
53
-
54
-
72
+DC_DMUB += dc_dmub_srv.o
73
+AMD_DISPLAY_DMUB = $(addprefix $(AMDDALPATH)/dc/,$(DC_DMUB))
74
+AMD_DISPLAY_FILES += $(AMD_DISPLAY_DMUB)