提交 320ca251 编写于 作者: B Ben Skeggs

drm/nouveau/msppp: switch to device pri macros

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 54118c74
......@@ -60,14 +60,15 @@ static int
g98_msppp_init(struct nvkm_object *object)
{
struct nvkm_falcon *msppp = (void *)object;
struct nvkm_device *device = msppp->engine.subdev.device;
int ret;
ret = nvkm_falcon_init(msppp);
if (ret)
return ret;
nv_wr32(msppp, 0x086010, 0x0000ffd2);
nv_wr32(msppp, 0x08601c, 0x0000fff2);
nvkm_wr32(device, 0x086010, 0x0000ffd2);
nvkm_wr32(device, 0x08601c, 0x0000fff2);
return 0;
}
......
......@@ -59,14 +59,15 @@ static int
gf100_msppp_init(struct nvkm_object *object)
{
struct nvkm_falcon *msppp = (void *)object;
struct nvkm_device *device = msppp->engine.subdev.device;
int ret;
ret = nvkm_falcon_init(msppp);
if (ret)
return ret;
nv_wr32(msppp, 0x086010, 0x0000fff2);
nv_wr32(msppp, 0x08601c, 0x0000fff2);
nvkm_wr32(device, 0x086010, 0x0000fff2);
nvkm_wr32(device, 0x08601c, 0x0000fff2);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册