Commit 6ed5c168 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/falcon: switch to new-style timer macros

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent dd4bb3ec
...@@ -102,10 +102,17 @@ _nvkm_falcon_init(struct nvkm_object *object) ...@@ -102,10 +102,17 @@ _nvkm_falcon_init(struct nvkm_object *object)
/* wait for 'uc halted' to be signalled before continuing */ /* wait for 'uc halted' to be signalled before continuing */
if (falcon->secret && falcon->version < 4) { if (falcon->secret && falcon->version < 4) {
if (!falcon->version) if (!falcon->version) {
nv_wait(falcon, 0x008, 0x00000010, 0x00000010); nvkm_msec(device, 2000,
else if (nv_ro32(falcon, 0x008) & 0x00000010)
nv_wait(falcon, 0x180, 0x80000000, 0); break;
);
} else {
nvkm_msec(device, 2000,
if (!(nv_ro32(falcon, 0x180) & 0x80000000))
break;
);
}
nv_wo32(falcon, 0x004, 0x00000010); nv_wo32(falcon, 0x004, 0x00000010);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment