summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/dispnv50/dac907d.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2020-06-20 11:09:59 +0300
committerBen Skeggs <bskeggs@redhat.com>2020-07-24 11:51:01 +0300
commit344c2e5a47960a95ef0504d8f0852005d1e199f0 (patch)
treeb5d6e99fec7da76b60dba6d196ff63a06784b489 /drivers/gpu/drm/nouveau/dispnv50/dac907d.c
parent8e650ecbcd5d769afa03618cb4c7f4a21498ecd5 (diff)
downloadlinux-344c2e5a47960a95ef0504d8f0852005d1e199f0.tar.xz
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/dac907d.c')
-rw-r--r--drivers/gpu/drm/nouveau/dispnv50/dac907d.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/dac907d.c b/drivers/gpu/drm/nouveau/dispnv50/dac907d.c
index f32e470b9358..95efa625b691 100644
--- a/drivers/gpu/drm/nouveau/dispnv50/dac907d.c
+++ b/drivers/gpu/drm/nouveau/dispnv50/dac907d.c
@@ -23,6 +23,8 @@
#include <nvif/push507c.h>
+#include <nvhw/class/cl907d.h>
+
static int
dac907d_ctrl(struct nv50_core *core, int or, u32 ctrl,
struct nv50_head_atom *asyh)
@@ -33,7 +35,7 @@ dac907d_ctrl(struct nv50_core *core, int or, u32 ctrl,
if ((ret = PUSH_WAIT(push, 2)))
return ret;
- PUSH_NVSQ(push, NV907D, 0x0180 + (or * 0x020), ctrl);
+ PUSH_MTHD(push, NV907D, DAC_SET_CONTROL(or), ctrl);
return 0;
}