mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 11:56:48 +00:00
sync modesetting code with X.org
Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
parent
c9daa873c3
commit
f728377f67
@ -1359,6 +1359,10 @@ intelfbhw_program_mode(struct intelfb_info *dinfo,
|
|||||||
/* Wait for vblank. For now, just wait for a 50Hz cycle (20ms)) */
|
/* Wait for vblank. For now, just wait for a 50Hz cycle (20ms)) */
|
||||||
mdelay(20);
|
mdelay(20);
|
||||||
|
|
||||||
|
OUTREG(DVOB, INREG(DVOB) & ~PORT_ENABLE);
|
||||||
|
OUTREG(DVOC, INREG(DVOC) & ~PORT_ENABLE);
|
||||||
|
OUTREG(ADPA, INREG(ADPA) & ~ADPA_DAC_ENABLE);
|
||||||
|
|
||||||
/* Disable Sync */
|
/* Disable Sync */
|
||||||
tmp = INREG(ADPA);
|
tmp = INREG(ADPA);
|
||||||
tmp &= ~ADPA_DPMS_CONTROL_MASK;
|
tmp &= ~ADPA_DPMS_CONTROL_MASK;
|
||||||
@ -1374,14 +1378,11 @@ intelfbhw_program_mode(struct intelfb_info *dinfo,
|
|||||||
OUTREG(dpll_reg, tmp);
|
OUTREG(dpll_reg, tmp);
|
||||||
|
|
||||||
/* Set PLL parameters */
|
/* Set PLL parameters */
|
||||||
OUTREG(dpll_reg, *dpll & ~DPLL_VCO_ENABLE);
|
|
||||||
OUTREG(fp0_reg, *fp0);
|
OUTREG(fp0_reg, *fp0);
|
||||||
OUTREG(fp1_reg, *fp1);
|
OUTREG(fp1_reg, *fp1);
|
||||||
|
|
||||||
/* Enable PLL */
|
/* Enable PLL */
|
||||||
tmp = INREG(dpll_reg);
|
OUTREG(dpll_reg, *dpll);
|
||||||
tmp |= DPLL_VCO_ENABLE;
|
|
||||||
OUTREG(dpll_reg, tmp);
|
|
||||||
|
|
||||||
/* Set DVOs B/C */
|
/* Set DVOs B/C */
|
||||||
OUTREG(DVOB, hw->dvob);
|
OUTREG(DVOB, hw->dvob);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user