mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
Merge branch 'drm-nouveau-fixes' of git://anongit.freedesktop.org/nouveau/linux-2.6 into drm-fixes
These two fix the MacBook Pro 2012 Retina display. * 'drm-nouveau-fixes' of git://anongit.freedesktop.org/nouveau/linux-2.6: drm/nv50-/gpio: initialise to vbios defaults during init drm/nvd0/disp: hopefully fix selection of 6/8bpc mode on DP outputs
This commit is contained in:
commit
f4fe968b61
@ -115,6 +115,9 @@ nv50_gpio_init(struct drm_device *dev)
|
|||||||
{
|
{
|
||||||
struct drm_nouveau_private *dev_priv = dev->dev_private;
|
struct drm_nouveau_private *dev_priv = dev->dev_private;
|
||||||
|
|
||||||
|
/* initialise gpios and routing to vbios defaults */
|
||||||
|
nouveau_gpio_reset(dev);
|
||||||
|
|
||||||
/* disable, and ack any pending gpio interrupts */
|
/* disable, and ack any pending gpio interrupts */
|
||||||
nv_wr32(dev, 0xe050, 0x00000000);
|
nv_wr32(dev, 0xe050, 0x00000000);
|
||||||
nv_wr32(dev, 0xe054, 0xffffffff);
|
nv_wr32(dev, 0xe054, 0xffffffff);
|
||||||
|
@ -1510,10 +1510,10 @@ nvd0_sor_mode_set(struct drm_encoder *encoder, struct drm_display_mode *umode,
|
|||||||
case OUTPUT_DP:
|
case OUTPUT_DP:
|
||||||
if (nv_connector->base.display_info.bpc == 6) {
|
if (nv_connector->base.display_info.bpc == 6) {
|
||||||
nv_encoder->dp.datarate = mode->clock * 18 / 8;
|
nv_encoder->dp.datarate = mode->clock * 18 / 8;
|
||||||
syncs |= 0x00000140;
|
syncs |= 0x00000002 << 6;
|
||||||
} else {
|
} else {
|
||||||
nv_encoder->dp.datarate = mode->clock * 24 / 8;
|
nv_encoder->dp.datarate = mode->clock * 24 / 8;
|
||||||
syncs |= 0x00000180;
|
syncs |= 0x00000005 << 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nv_encoder->dcb->sorconf.link & 1)
|
if (nv_encoder->dcb->sorconf.link & 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user