summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2017-05-19 23:59:35 +1000
committerBen Skeggs <bskeggs@redhat.com>2017-06-16 14:04:54 +1000
commit333781045d84628417efa161d37256331abef64b (patch)
treeec4db87ef753bb0ee802c675e506fe37516068b8 /drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
parent797b2fb81b506d4ad30aa34e5c81c0a541d398cd (diff)
drm/nouveau/disp/g94-: port OR DP lane mapping to nvkm_ior
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
index c8773d058073..11fed49fa9b6 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
@@ -41,7 +41,7 @@ gm200_sor_loff(struct nvkm_output_dp *outp)
static inline u32
gm200_sor_dp_lane_map(struct nvkm_device *device, u8 lane)
{
- return lane * 0x08;
+ return nvkm_ior_find(device->disp, SOR, -1)->func->dp.lanes[lane] * 8;
}
static int
@@ -137,6 +137,9 @@ gm200_sor = {
.hdmi = {
.ctrl = gk104_hdmi_ctrl,
},
+ .dp = {
+ .lanes = { 0, 1, 2, 3 },
+ },
};
int