drm/nouveau/i2c: add support for DCB_I2C_PMGR port type

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2014-08-19 08:25:40 +10:00
parent c5a09c8116
commit 5620c01dfc
1 changed files with 12 additions and 0 deletions

View File

@ -556,6 +556,18 @@ nouveau_i2c_create_(struct nouveau_object *parent,
nouveau_i2c_create_port(i2c, NV_I2C_AUX(index), nouveau_i2c_create_port(i2c, NV_I2C_AUX(index),
info.type, &info); info.type, &info);
break; break;
case DCB_I2C_PMGR:
if (info.drive != DCB_I2C_UNUSED) {
nouveau_i2c_create_port(i2c, NV_I2C_PORT(index),
DCB_I2C_NVIO_BIT,
&info);
}
if (info.auxch != DCB_I2C_UNUSED) {
nouveau_i2c_create_port(i2c, NV_I2C_AUX(index),
DCB_I2C_NVIO_AUX,
&info);
}
break;
case DCB_I2C_UNUSED: case DCB_I2C_UNUSED:
default: default:
continue; continue;