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

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



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent c5a09c81
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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;