diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-08-19 08:25:40 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-12-02 15:37:19 +1000 |
commit | 33239b9ed0bdb71631500278c64f1a82e8cc37c8 (patch) | |
tree | 3cc504d5d2a00a8c0e5295f4944dcbd209ab2de5 /nvkm | |
parent | a3721c21ed8ce921210932aeb56fb762708b028a (diff) | |
download | nouveau-33239b9ed0bdb71631500278c64f1a82e8cc37c8.tar.gz |
i2c: add support for DCB_I2C_PMGR port type
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nvkm')
-rw-r--r-- | nvkm/subdev/i2c/base.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nvkm/subdev/i2c/base.c b/nvkm/subdev/i2c/base.c index 3376356ab..0dc605db7 100644 --- a/nvkm/subdev/i2c/base.c +++ b/nvkm/subdev/i2c/base.c @@ -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; |