projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5a09c8
)
drm/nouveau/i2c: add support for DCB_I2C_PMGR port type
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 18 Aug 2014 22:25:40 +0000
(08:25 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Tue, 2 Dec 2014 05:43:47 +0000
(15:43 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
b/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
index 3376356aba43d973120ec6d4eb0e022fc9d2c1b1..0dc605db7ec8f7ab17d50c7d27ab72b1bc0d3128 100644
(file)
--- 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;