diff options
author | 2020-04-21 21:35:50 +0800 | |
---|---|---|
committer | 2020-04-24 20:51:19 +0800 | |
commit | 63945d51490f16aede6d635e785faf56521e5e4a (patch) | |
tree | e4bc1915f491fa4c7f8857c19d07efb0cdde7556 /drivers/gpu/drm/lima/lima_device.h | |
parent | drm/lima: separate clk/regulator enable/disable function (diff) | |
download | linux-dev-63945d51490f16aede6d635e785faf56521e5e4a.tar.xz linux-dev-63945d51490f16aede6d635e785faf56521e5e4a.zip |
drm/lima: add pm resume/suspend ops
Add driver pm system and runtime hardware resume/suspend ops.
Note this won't enable runtime pm of the device yet.
v2:
Do clock and power gating when suspend/resume.
Tested-by: Bhushan Shah <bshah@kde.org>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200421133551.31481-10-yuq825@gmail.com
Diffstat (limited to 'drivers/gpu/drm/lima/lima_device.h')
-rw-r--r-- | drivers/gpu/drm/lima/lima_device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/lima/lima_device.h b/drivers/gpu/drm/lima/lima_device.h index d9df1b45dfa9..41b9d7b4bcc7 100644 --- a/drivers/gpu/drm/lima/lima_device.h +++ b/drivers/gpu/drm/lima/lima_device.h @@ -140,4 +140,7 @@ static inline int lima_poll_timeout(struct lima_ip *ip, lima_poll_func_t func, return 0; } +int lima_device_suspend(struct device *dev); +int lima_device_resume(struct device *dev); + #endif |