summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dc_bios_types.h
diff options
context:
space:
mode:
authorLewis Huang <Lewis.Huang@amd.com>2018-10-18 17:52:19 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-11-05 14:21:45 -0500
commitd2b1d6bbc56afab8ebae9d52d7ca0ea3569bd600 (patch)
tree2391c23793bd94192f277c16291dd780a2399b1d /drivers/gpu/drm/amd/display/dc/dc_bios_types.h
parentff83a9a0d15d3be46b3288346a1180777f1a4e41 (diff)
drm/amd/display: Add condition to sync eDP SW status and HW status
[Why] Need to disable EDP backlight when enter S4 with EDP only and resume from S4 with secondary only. [How] Align the real hw and sw state via vBios scratch register in function enable_accelerated_mode when resume from S4. Signed-off-by: Lewis Huang <Lewis.Huang@amd.com> Reviewed-by: Charlene Liu <Charlene.Liu@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_bios_types.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_bios_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_bios_types.h b/drivers/gpu/drm/amd/display/dc/dc_bios_types.h
index 8130b95ccc53..a8b3cedf9431 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_bios_types.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_bios_types.h
@@ -86,6 +86,10 @@ struct dc_vbios_funcs {
bool (*is_accelerated_mode)(
struct dc_bios *bios);
+ bool (*is_active_display)(
+ struct dc_bios *bios,
+ enum signal_type signal,
+ const struct connector_device_tag_info *device_tag);
void (*set_scratch_critical_state)(
struct dc_bios *bios,
bool state);
@@ -141,6 +145,7 @@ struct dc_vbios_funcs {
};
struct bios_registers {
+ uint32_t BIOS_SCRATCH_0;
uint32_t BIOS_SCRATCH_3;
uint32_t BIOS_SCRATCH_6;
};