diff options
author | Krunoslav Kovac <Krunoslav.Kovac@amd.com> | 2020-10-20 16:23:15 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-11-10 14:24:55 -0500 |
commit | 1d496907f1c50c1c5f9617d4b7628a635fdd9cb1 (patch) | |
tree | 39636f147b62ff6153f11b530793e2c3c8365e71 /drivers/gpu/drm/amd/display/dc/dc_types.h | |
parent | fa896813b441115545349752e15a7d66f3fa2240 (diff) | |
download | linux-stable-1d496907f1c50c1c5f9617d4b7628a635fdd9cb1.tar.gz linux-stable-1d496907f1c50c1c5f9617d4b7628a635fdd9cb1.tar.bz2 linux-stable-1d496907f1c50c1c5f9617d4b7628a635fdd9cb1.zip |
drm/amd/display: Engage PSR synchronously
[Why & How]
The intended use is to force PSR into active state and ignore all
events until explicit EXIT.
A new event force_static is added to power module. It is then sent
to FW.
Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_types.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_types.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_types.h b/drivers/gpu/drm/amd/display/dc/dc_types.h index 53c29d811493..86406b42572c 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_types.h +++ b/drivers/gpu/drm/amd/display/dc/dc_types.h @@ -671,6 +671,25 @@ struct dc_plane_flip_time { unsigned int prev_update_time_in_us; }; +enum dc_psr_state { + PSR_STATE0 = 0x0, + PSR_STATE1, + PSR_STATE1a, + PSR_STATE2, + PSR_STATE2a, + PSR_STATE3, + PSR_STATE3Init, + PSR_STATE4, + PSR_STATE4a, + PSR_STATE4b, + PSR_STATE4c, + PSR_STATE4d, + PSR_STATE5, + PSR_STATE5a, + PSR_STATE5b, + PSR_STATE5c +}; + struct psr_config { unsigned char psr_version; unsigned int psr_rfb_setup_time; |