]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c
drm/nouveau/disp/g94-: port OR DP lane mapping to nvkm_ior
[karo-tx-linux.git] / drivers / gpu / drm / nouveau / nvkm / engine / disp / sorgm200.c
index c8773d0580730918e8c5dc85576c0e82019a6026..11fed49fa9b6f4a773e298a09406ee6e02c27fe8 100644 (file)
@@ -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