From: Ben Skeggs Date: Mon, 18 Aug 2014 22:25:40 +0000 (+1000) Subject: drm/nouveau/i2c: add support for DCB_I2C_PMGR port type X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5620c01dfce44e76c90e0da68e952843d21c6d50;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/nouveau/i2c: add support for DCB_I2C_PMGR port type Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c b/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c index 3376356aba43..0dc605db7ec8 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c +++ b/drivers/gpu/drm/nouveau/core/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;