diff options
author | Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> | 2020-09-29 21:52:09 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-12 21:02:51 +0300 |
commit | 36d26912e8d854853e3cdb300664db274a6636cf (patch) | |
tree | 7bfd642a153170007b90816aae1bb561d8b66481 /drivers/gpu/drm/amd/display/dc/gpio | |
parent | 4da678390890c7cf99e068ecd9d7ee5bf0d5290b (diff) | |
download | linux-36d26912e8d854853e3cdb300664db274a6636cf.tar.xz |
drm/amd/display: Add support for DCN302 (v2)
- add DCN302 resource, irq service, dmub loader,
- handle DC_VERSION_DCN_3_02
- define DCN302 power gating functions
- handle DCN302 in GPIO files
- define I2C regs
- add CONFIG_DRM_AMD_DC_DCN3_02 guard
v2: rebase fixes (Alex)
Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/gpio')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c index f9ed80c48980..90b6cc2f431b 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c +++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c @@ -117,6 +117,9 @@ bool dal_hw_factory_init( #if defined(CONFIG_DRM_AMD_DC_DCN3_01) case DCN_VERSION_3_01: #endif +#if defined(CONFIG_DRM_AMD_DC_DCN3_02) + case DCN_VERSION_3_02: +#endif dal_hw_factory_dcn30_init(factory); return true; #endif diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c index 8abc4b0a961c..6e62850a031e 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c +++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c @@ -112,6 +112,9 @@ bool dal_hw_translate_init( #if defined(CONFIG_DRM_AMD_DC_DCN3_01) case DCN_VERSION_3_01: #endif +#if defined(CONFIG_DRM_AMD_DC_DCN3_02) + case DCN_VERSION_3_02: +#endif dal_hw_translate_dcn30_init(translate); return true; #endif |