diff options
author | Wyatt Wood <wyatt.wood@amd.com> | 2020-01-20 23:52:44 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-02-11 19:50:55 +0300 |
commit | 115c7e7f0501716c05d2df5b1b9e06df9241a48c (patch) | |
tree | 16e15280be50288aab5014a7af78340edadd481c /drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h | |
parent | 71bbb1fcb1920347b87a7b24efe754769fc5924c (diff) | |
download | linux-115c7e7f0501716c05d2df5b1b9e06df9241a48c.tar.xz |
drm/amd/display: Add psr get_state call
[Why]
Driver needs to know PSR state.
[How]
Use GPINT to call to firmware and get psr state.
Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h b/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h index 5e8553d450c9..3de7b9439f42 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h +++ b/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h @@ -36,7 +36,7 @@ struct dmub_psr { struct dmub_psr_funcs { bool (*psr_copy_settings)(struct dmub_psr *dmub, struct dc_link *link, struct psr_context *psr_context); void (*psr_enable)(struct dmub_psr *dmub, bool enable); - void (*psr_get_state)(uint32_t *psr_state); + void (*psr_get_state)(struct dmub_psr *dmub, uint32_t *psr_state); void (*psr_set_level)(struct dmub_psr *dmub, uint16_t psr_level); }; |