mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
drm/nouveau/disp/gm200-: add scdc parameter setter
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
4126b99e74
commit
4834e05049
@ -50,6 +50,7 @@ nvkm-y += nvkm/engine/disp/hdmig84.o
|
||||
nvkm-y += nvkm/engine/disp/hdmigt215.o
|
||||
nvkm-y += nvkm/engine/disp/hdmigf119.o
|
||||
nvkm-y += nvkm/engine/disp/hdmigk104.o
|
||||
nvkm-y += nvkm/engine/disp/hdmigm200.o
|
||||
nvkm-y += nvkm/engine/disp/hdmigv100.o
|
||||
|
||||
nvkm-y += nvkm/engine/disp/conn.o
|
||||
|
34
drivers/gpu/drm/nouveau/nvkm/engine/disp/hdmigm200.c
Normal file
34
drivers/gpu/drm/nouveau/nvkm/engine/disp/hdmigm200.c
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2018 Ilia Mirkin
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* Authors: Ilia Mirkin
|
||||
*/
|
||||
#include "hdmi.h"
|
||||
|
||||
void
|
||||
gm200_hdmi_scdc(struct nvkm_ior *ior, int head, u8 scdc)
|
||||
{
|
||||
struct nvkm_device *device = ior->disp->engine.subdev.device;
|
||||
const u32 hoff = head * 0x800;
|
||||
const u32 ctrl = scdc & 0x3;
|
||||
|
||||
nvkm_mask(device, 0x61c5bc + hoff, 0x00000003, ctrl);
|
||||
}
|
@ -145,6 +145,8 @@ void gf119_hdmi_ctrl(struct nvkm_ior *, int, bool, u8, u8, u8 *, u8 , u8 *, u8);
|
||||
void gk104_hdmi_ctrl(struct nvkm_ior *, int, bool, u8, u8, u8 *, u8 , u8 *, u8);
|
||||
void gv100_hdmi_ctrl(struct nvkm_ior *, int, bool, u8, u8, u8 *, u8 , u8 *, u8);
|
||||
|
||||
void gm200_hdmi_scdc(struct nvkm_ior *, int, u8);
|
||||
|
||||
void gt215_hda_hpd(struct nvkm_ior *, int, bool);
|
||||
void gt215_hda_eld(struct nvkm_ior *, u8 *, u8);
|
||||
|
||||
|
@ -99,6 +99,7 @@ gm200_sor = {
|
||||
.clock = gf119_sor_clock,
|
||||
.hdmi = {
|
||||
.ctrl = gk104_hdmi_ctrl,
|
||||
.scdc = gm200_hdmi_scdc,
|
||||
},
|
||||
.dp = {
|
||||
.lanes = { 0, 1, 2, 3 },
|
||||
|
@ -88,6 +88,7 @@ gv100_sor = {
|
||||
.clock = gf119_sor_clock,
|
||||
.hdmi = {
|
||||
.ctrl = gv100_hdmi_ctrl,
|
||||
.scdc = gm200_hdmi_scdc,
|
||||
},
|
||||
.dp = {
|
||||
.lanes = { 0, 1, 2, 3 },
|
||||
|
Loading…
Reference in New Issue
Block a user