提交 edb1dc51 编写于 作者: B Ben Skeggs

drm/nouveau/xtensa: switch to gpuobj accessor macros

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 9cc264a3
......@@ -120,8 +120,10 @@ _nvkm_xtensa_init(struct nvkm_object *object)
nvkm_debug(subdev, "Loading firmware to address: %010llx\n",
xtensa->gpu_fw->addr);
nvkm_kmap(xtensa->gpu_fw);
for (i = 0; i < fw->size / 4; i++)
nv_wo32(xtensa->gpu_fw, i * 4, *((u32 *)fw->data + i));
nvkm_wo32(xtensa->gpu_fw, i * 4, *((u32 *)fw->data + i));
nvkm_done(xtensa->gpu_fw);
release_firmware(fw);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册