drm/nouveau/i2c: add support for DCB_I2C_PMGR port type
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
c5a09c8116
commit
5620c01dfc
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue