提交 5620c01d 编写于 作者: B Ben Skeggs

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

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册