mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 05:22:49 -04:00
drm/amd/display: Add dcn3.01 support to DC (v2)
Update dc for vangogh support. v2: fix compilation without DCN 301 set. Signed-off-by: Roman Li <Roman.Li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -30,6 +30,9 @@
|
||||
#ifdef CONFIG_DRM_AMD_DC_DCN3_0
|
||||
#include "dmub_dcn30.h"
|
||||
#endif
|
||||
#ifdef CONFIG_DRM_AMD_DC_DCN3_01
|
||||
#include "dmub_dcn301.h"
|
||||
#endif
|
||||
#include "os_types.h"
|
||||
/*
|
||||
* Note: the DMUB service is standalone. No additional headers should be
|
||||
@@ -138,6 +141,9 @@ static bool dmub_srv_hw_setup(struct dmub_srv *dmub, enum dmub_asic asic)
|
||||
case DMUB_ASIC_DCN21:
|
||||
#ifdef CONFIG_DRM_AMD_DC_DCN3_0
|
||||
case DMUB_ASIC_DCN30:
|
||||
#endif
|
||||
#ifdef CONFIG_DRM_AMD_DC_DCN3_01
|
||||
case DMUB_ASIC_DCN301:
|
||||
#endif
|
||||
dmub->regs = &dmub_srv_dcn20_regs;
|
||||
|
||||
@@ -169,6 +175,14 @@ static bool dmub_srv_hw_setup(struct dmub_srv *dmub, enum dmub_asic asic)
|
||||
funcs->setup_windows = dmub_dcn30_setup_windows;
|
||||
}
|
||||
#endif
|
||||
#ifdef CONFIG_DRM_AMD_DC_DCN3_01
|
||||
if (asic == DMUB_ASIC_DCN301) {
|
||||
dmub->regs = &dmub_srv_dcn301_regs;
|
||||
|
||||
funcs->backdoor_load = dmub_dcn30_backdoor_load;
|
||||
funcs->setup_windows = dmub_dcn30_setup_windows;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user