mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
drm/lima: add resume/suspend callback for each ip
For called when PM do resume/suspend. 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-8-yuq825@gmail.com
This commit is contained in:
parent
9f5072a191
commit
3446d7e988
16 changed files with 187 additions and 37 deletions
|
@ -42,7 +42,7 @@ void lima_dlbu_set_reg(struct lima_ip *ip, u32 *reg)
|
|||
dlbu_write(LIMA_DLBU_START_TILE_POS, reg[3]);
|
||||
}
|
||||
|
||||
int lima_dlbu_init(struct lima_ip *ip)
|
||||
static int lima_dlbu_hw_init(struct lima_ip *ip)
|
||||
{
|
||||
struct lima_device *dev = ip->dev;
|
||||
|
||||
|
@ -52,6 +52,21 @@ int lima_dlbu_init(struct lima_ip *ip)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int lima_dlbu_resume(struct lima_ip *ip)
|
||||
{
|
||||
return lima_dlbu_hw_init(ip);
|
||||
}
|
||||
|
||||
void lima_dlbu_suspend(struct lima_ip *ip)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int lima_dlbu_init(struct lima_ip *ip)
|
||||
{
|
||||
return lima_dlbu_hw_init(ip);
|
||||
}
|
||||
|
||||
void lima_dlbu_fini(struct lima_ip *ip)
|
||||
{
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue