提交 c1b60ece 编写于 作者: F Francisco Jerez 提交者: Ben Skeggs

drm/nouveau: Fix a few confusions between "chipset" and "card_type".

Signed-off-by: NFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 5bead799
...@@ -6829,7 +6829,7 @@ nouveau_bios_posted(struct drm_device *dev) ...@@ -6829,7 +6829,7 @@ nouveau_bios_posted(struct drm_device *dev)
struct drm_nouveau_private *dev_priv = dev->dev_private; struct drm_nouveau_private *dev_priv = dev->dev_private;
unsigned htotal; unsigned htotal;
if (dev_priv->chipset >= NV_50) { if (dev_priv->card_type >= NV_50) {
if (NVReadVgaCrtc(dev, 0, 0x00) == 0 && if (NVReadVgaCrtc(dev, 0, 0x00) == 0 &&
NVReadVgaCrtc(dev, 0, 0x1a) == 0) NVReadVgaCrtc(dev, 0, 0x1a) == 0)
return false; return false;
......
...@@ -256,7 +256,7 @@ nouveau_i2c_find(struct drm_device *dev, int index) ...@@ -256,7 +256,7 @@ nouveau_i2c_find(struct drm_device *dev, int index)
if (index >= DCB_MAX_NUM_I2C_ENTRIES) if (index >= DCB_MAX_NUM_I2C_ENTRIES)
return NULL; return NULL;
if (dev_priv->chipset >= NV_50 && (i2c->entry & 0x00000100)) { if (dev_priv->card_type >= NV_50 && (i2c->entry & 0x00000100)) {
uint32_t reg = 0xe500, val; uint32_t reg = 0xe500, val;
if (i2c->port_type == 6) { if (i2c->port_type == 6) {
......
...@@ -191,7 +191,7 @@ nv40_temp_get(struct drm_device *dev) ...@@ -191,7 +191,7 @@ nv40_temp_get(struct drm_device *dev)
int offset = sensor->offset_mult / sensor->offset_div; int offset = sensor->offset_mult / sensor->offset_div;
int core_temp; int core_temp;
if (dev_priv->chipset >= 0x50) { if (dev_priv->card_type >= NV_50) {
core_temp = nv_rd32(dev, 0x20008); core_temp = nv_rd32(dev, 0x20008);
} else { } else {
core_temp = nv_rd32(dev, 0x0015b4) & 0x1fff; core_temp = nv_rd32(dev, 0x0015b4) & 0x1fff;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册