Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Refactor for dio

Moved files to respective folders to improve DIO code.

Signed-off-by: Bhuvanachandra Pinninti <bpinnint@amd.com>
Reviewed-by: Martin Leung <martin.leung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Bhuvanachandra Pinninti and committed by
Alex Deucher
680caca6 fcb3a4fb

+19 -14
-1
drivers/gpu/drm/amd/display/dc/Makefile
··· 35 35 DC_LIBS += dcn30 36 36 DC_LIBS += dcn301 37 37 DC_LIBS += dcn31 38 - DC_LIBS += dcn314 39 38 DC_LIBS += dml 40 39 DC_LIBS += dml2 41 40 endif
+1 -1
drivers/gpu/drm/amd/display/dc/dcn301/Makefile
··· 3 3 # 4 4 # Makefile for dcn30. 5 5 6 - DCN301 = dcn301_dio_link_encoder.o dcn301_panel_cntl.o 6 + DCN301 = dcn301_panel_cntl.o 7 7 8 8 AMD_DAL_DCN301 = $(addprefix $(AMDDALPATH)/dc/dcn301/,$(DCN301)) 9 9
-10
drivers/gpu/drm/amd/display/dc/dcn314/Makefile
··· 1 - # SPDX-License-Identifier: MIT 2 - # Copyright © 2024 Advanced Micro Devices, Inc. All rights reserved. 3 - # 4 - # Makefile for dcn314. 5 - 6 - DCN314 = dcn314_dio_stream_encoder.o 7 - 8 - AMD_DAL_DCN314 = $(addprefix $(AMDDALPATH)/dc/dcn314/,$(DCN314)) 9 - 10 - AMD_DISPLAY_FILES += $(AMD_DAL_DCN314)
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dio_stream_encoder.c drivers/gpu/drm/amd/display/dc/dio/dcn314/dcn314_dio_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dio_stream_encoder.h drivers/gpu/drm/amd/display/dc/dio/dcn314/dcn314_dio_stream_encoder.h
+18
drivers/gpu/drm/amd/display/dc/dio/Makefile
··· 52 52 AMD_DISPLAY_FILES += $(AMD_DAL_DIO_DCN30) 53 53 54 54 ############################################################################### 55 + # DCN301 56 + ############################################################################### 57 + DIO_DCN301 = dcn301_dio_link_encoder.o 58 + 59 + AMD_DAL_DIO_DCN301 = $(addprefix $(AMDDALPATH)/dc/dio/dcn301/,$(DIO_DCN301)) 60 + 61 + AMD_DISPLAY_FILES += $(AMD_DAL_DIO_DCN301) 62 + 63 + ############################################################################### 55 64 # DCN31 56 65 ############################################################################### 57 66 DIO_DCN31 = dcn31_dio_link_encoder.o ··· 68 59 AMD_DAL_DIO_DCN31 = $(addprefix $(AMDDALPATH)/dc/dio/dcn31/,$(DIO_DCN31)) 69 60 70 61 AMD_DISPLAY_FILES += $(AMD_DAL_DIO_DCN31) 62 + 63 + ############################################################################### 64 + # DCN314 65 + ############################################################################### 66 + DIO_DCN314 = dcn314_dio_stream_encoder.o 67 + 68 + AMD_DAL_DIO_DCN314 = $(addprefix $(AMDDALPATH)/dc/dio/dcn314/,$(DIO_DCN314)) 69 + 70 + AMD_DISPLAY_FILES += $(AMD_DAL_DIO_DCN314) 71 71 72 72 ############################################################################### 73 73 # DCN32
-1
drivers/gpu/drm/amd/display/dc/dio/dcn35/dcn35_dio_stream_encoder.c
··· 22 22 * 23 23 */ 24 24 25 - 26 25 #include "dc_bios_types.h" 27 26 #include "dcn30/dcn30_dio_stream_encoder.h" 28 27 #include "dcn314/dcn314_dio_stream_encoder.h"