mirror of
https://github.com/torvalds/linux.git
synced 2026-04-22 16:53:59 -04:00
drm/amd/display: Add DCN3 DMUB
DMUB (Display Micro-Controller Unit) Used to read/write regs Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
666ed8bfd1
commit
5baebf61ba
@@ -27,6 +27,9 @@
|
||||
#include "dmub_dcn20.h"
|
||||
#include "dmub_dcn21.h"
|
||||
#include "dmub_cmd.h"
|
||||
#ifdef CONFIG_DRM_AMD_DC_DCN3_0
|
||||
#include "dmub_dcn30.h"
|
||||
#endif
|
||||
#include "os_types.h"
|
||||
/*
|
||||
* Note: the DMUB service is standalone. No additional headers should be
|
||||
@@ -133,6 +136,9 @@ static bool dmub_srv_hw_setup(struct dmub_srv *dmub, enum dmub_asic asic)
|
||||
switch (asic) {
|
||||
case DMUB_ASIC_DCN20:
|
||||
case DMUB_ASIC_DCN21:
|
||||
#ifdef CONFIG_DRM_AMD_DC_DCN3_0
|
||||
case DMUB_ASIC_DCN30:
|
||||
#endif
|
||||
dmub->regs = &dmub_srv_dcn20_regs;
|
||||
|
||||
funcs->reset = dmub_dcn20_reset;
|
||||
@@ -154,6 +160,15 @@ static bool dmub_srv_hw_setup(struct dmub_srv *dmub, enum dmub_asic asic)
|
||||
funcs->is_auto_load_done = dmub_dcn21_is_auto_load_done;
|
||||
funcs->is_phy_init = dmub_dcn21_is_phy_init;
|
||||
}
|
||||
#ifdef CONFIG_DRM_AMD_DC_DCN3_0
|
||||
if (asic == DMUB_ASIC_DCN30) {
|
||||
dmub->regs = &dmub_srv_dcn30_regs;
|
||||
|
||||
funcs->is_auto_load_done = dmub_dcn30_is_auto_load_done;
|
||||
funcs->backdoor_load = dmub_dcn30_backdoor_load;
|
||||
funcs->setup_windows = dmub_dcn30_setup_windows;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user