提交 1dee7a93 编写于 作者: B Ben Skeggs

drm/nv04: differentiate between nv04/nv05

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 234896a7
......@@ -642,6 +642,9 @@ int nouveau_load(struct drm_device *dev, unsigned long flags)
dev_priv->chipset = (reg0 & 0xff00000) >> 20;
/* NV04 or NV05 */
} else if ((reg0 & 0xff00fff0) == 0x20004000) {
if (reg0 & 0x00f00000)
dev_priv->chipset = 0x05;
else
dev_priv->chipset = 0x04;
} else
dev_priv->chipset = 0xff;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册