Commit 5620c01d authored by Ben Skeggs's avatar Ben Skeggs

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

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent c5a09c81
......@@ -556,6 +556,18 @@ nouveau_i2c_create_(struct nouveau_object *parent,
nouveau_i2c_create_port(i2c, NV_I2C_AUX(index),
info.type, &info);
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:
default:
continue;
......
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