diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-06-20 18:09:59 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-07-24 18:51:01 +1000 |
commit | 344c2e5a47960a95ef0504d8f0852005d1e199f0 (patch) | |
tree | b5d6e99fec7da76b60dba6d196ff63a06784b489 /drivers/gpu/drm/nouveau/dispnv50/sorc37d.c | |
parent | drm/nouveau/kms/nv50-: use NVIDIA's headers for core wndw_owner() (diff) | |
download | wireguard-linux-344c2e5a47960a95ef0504d8f0852005d1e199f0.tar.xz wireguard-linux-344c2e5a47960a95ef0504d8f0852005d1e199f0.zip |
drm/nouveau/kms/nv50-: use NVIDIA's headers for core or_ctrl()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv50/sorc37d.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/sorc37d.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/sorc37d.c b/drivers/gpu/drm/nouveau/dispnv50/sorc37d.c index 734944864198..9eaef34816da 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/sorc37d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/sorc37d.c @@ -21,7 +21,9 @@ */ #include "core.h" -#include <nvif/push507c.h> +#include <nvif/pushc37b.h> + +#include <nvhw/class/clc37d.h> static int sorc37d_ctrl(struct nv50_core *core, int or, u32 ctrl, @@ -33,7 +35,7 @@ sorc37d_ctrl(struct nv50_core *core, int or, u32 ctrl, if ((ret = PUSH_WAIT(push, 2))) return ret; - PUSH_NVSQ(push, NVC37D, 0x0300 + (or * 0x20), ctrl); + PUSH_MTHD(push, NVC37D, SOR_SET_CONTROL(or), ctrl); return 0; } |