projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
946fd35
)
drm/nouveau: Fix TV-out detection on unposted cards lacking a usable DCB table.
author
Francisco Jerez
<currojerez@riseup.net>
Sat, 24 Jul 2010 15:42:20 +0000
(17:42 +0200)
committer
Ben Skeggs
<bskeggs@redhat.com>
Mon, 26 Jul 2010 01:43:48 +0000
(11:43 +1000)
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv04_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nv04_display.c
b/drivers/gpu/drm/nouveau/nv04_display.c
index cd70bd8276144507aac80142f12219ad746d3f96..9e28cf772e3cd482af0c1d048634470d0bdf3b2d 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nv04_display.c
+++ b/
drivers/gpu/drm/nouveau/nv04_display.c
@@
-78,6
+78,14
@@
nv04_display_store_initial_head_owner(struct drm_device *dev)
int
nv04_display_early_init(struct drm_device *dev)
{
+ /* Make the I2C buses accessible. */
+ if (!nv_gf4_disp_arch(dev)) {
+ uint32_t pmc_enable = nv_rd32(dev, NV03_PMC_ENABLE);
+
+ if (!(pmc_enable & 1))
+ nv_wr32(dev, NV03_PMC_ENABLE, pmc_enable | 1);
+ }
+
/* Unlock the VGA CRTCs. */
NVLockVgaCrtcs(dev, false);