Eric Anholt
effab21c3d
Set displayWidth to a sufficient value for the modes we come up with for LVDS.
...
Reported by: Lukáš Hejtmánek
2006-04-24 11:42:24 -07:00
Eric Anholt
bcb441225d
Simplify the i2c code by using the GetBits/PutBits interface rather than
...
reimplementing it.
2006-04-24 10:54:45 -07:00
Eric Anholt
47bd905943
Merge branch 'lukas-resume'
2006-04-24 10:36:24 -07:00
Dave Airlie
729c373121
move sdvo output setting
...
we have to set the sdvo register a lot earlier in order for them to sync
properly otherwise my monitor doesn't sync unfortunately, also
disable the sdvo while tweaking the PLLs.
This also comments out a setting that seems to break my system here for
Eric to look at later.
2006-04-20 13:34:55 +10:00
Dave Airlie
0ba7b13fb4
fix type 0 instead of O
2006-04-20 12:29:06 +10:00
Dave Airlie
2991d81a3b
correct height parameter in sdvo packet
2006-04-20 12:27:47 +10:00
Dave Airlie
b5f099e03a
cleanup sDVO for device on C only
...
This destroys the i2c device properly if the device isn't detected,
and allows sDVO to work on GM chipsets, and doesn't initialise
the i2c bus twice for sDVO.
2006-04-20 09:50:36 +10:00
Eric Anholt
2909802de6
Clean up SDVO initialization, include config.h, and make it check the right
...
slave address on the first device as well. This gets me to the point of
bringing up some modes on my device.
2006-04-19 16:29:06 -07:00
Lukáš Hejtmanek
32a0ad570d
Add more registers to save/restore. Save/restore palette as well
2006-04-19 19:43:45 -03:00
Eric Anholt
132dc0599c
Whine if SDVO I2C device init fails, rather than be silent.
2006-04-19 15:04:17 -07:00
Eric Anholt
88bb4b5788
Add more SDVO code. It's taken from airlied's driver, but with magic numbers
...
replaced by symbolic names in many places. I tried to restrain myself from
functional changes in airlied's code in this pass.
2006-04-19 14:23:45 -07:00
Eric Anholt
d8f7dfac76
Start bringing in some SDVO code, mostly from airlied.
2006-04-19 10:45:13 -07:00
Eric Anholt
a371a04a57
Use the IS_I9XX macro intead of >= i915G, since by PCI ID number, 855GM > 915.
2006-04-17 14:10:50 -07:00
Eric Anholt
33413a3cf3
Remove some dead code and one particularly useless debug printf.
2006-04-17 13:42:57 -07:00
Eric Anholt
365b4a53ee
Disable the BIOS dump-to-file since it's a trivial local DOS, and I can just ask
...
people to turn it on and recompile when I need to.
2006-04-17 01:12:28 -05:00
Eric Anholt
ee7be006b6
Bug #6589 : Use alternate offsets to successfully get at the panel data for
...
some broken video BIOSes.
2006-04-16 13:13:42 -05:00
Eric Anholt
786ee3df17
Add a standalone program for parsing VBT.
2006-04-16 13:05:35 -05:00
Eric Anholt
62652127cd
Check for LVDS BIOS tables exactly once at startup. While there, dump the BIOS
...
data to /tmp/xf86-video-intel-VBIOS, for offline debugging.
2006-04-15 12:16:46 -07:00
Alan Hourihane
830fa81792
fix typo
2006-04-12 21:55:31 +01:00
Eric Anholt
d6edffee7d
Initial support for pre-i915 PLL programming. Untested.
2006-04-12 13:13:27 -07:00
Eric Anholt
59f88955f5
Automatically enable clone mode if we detect two active outputs.
2006-04-12 11:12:07 -07:00
Eric Anholt
185b525141
Add missing MIT copyright licenses, which should have been on all versions.
2006-04-10 20:25:13 -07:00
Keith Packard
c0a2dc608d
Save/restore PFIT_CONTROL. Eliminate compiler warnings
2006-04-10 20:09:37 -07:00
Keith Packard
498abf474b
Merge branch 'modesetting-origin' into modesetting
2006-04-10 19:41:50 -07:00
Keith Packard
c26f0737e2
Merge in master to modesetting
2006-04-10 19:41:41 -07:00
Eric Anholt
3de82ff393
Improve LVDS modes when outputting a CRT+LVDS combo at larger than the LVDS's
...
panel size. This is a hack until we get better clone mode, but it correctly
displays a subset of the root on the LVDS by using a correct pixel clock and
pipe/display size.
2006-04-10 15:10:15 -07:00
Adam Jackson
692a4a4baf
Bump to 1.6.0.
2006-04-10 11:27:25 -07:00
Aaron Plattner
43c93057c0
Add a DrawablePtr argument to the XV functions to pave the way for redirected
...
video.
2006-04-10 11:26:33 -07:00
Alan Hourihane
39bdfbb4c2
x86_64 warning fixes
2006-04-10 11:26:06 -07:00
Eric Anholt
11ad8a590d
Remove the int10 POST on EnterVT. It has been reported to cause crashes now,
...
and I believe it is the responsibility of the kernel to bring the device back to
a mostly-sane state on resume anyway.
2006-04-10 09:39:24 -07:00
Eric Anholt
4217ce18ce
Warnings cleanup.
2006-04-10 09:37:02 -07:00
Eric Anholt
334512e060
Don't try to use LVDS by default on chipsets that won't have an LVDS attached.
...
The BIOS tables may still exist, so we can't rely on their presence to indicate
LVDS attachment.
2006-04-10 09:32:45 -07:00
Eric Anholt
69083a2fc3
Remove BIOS save/restore code, fixing VT switching. Removes some other dead
...
code, too.
2006-04-06 16:00:42 -07:00
Eric Anholt
2e5d85fb83
Turn off the VGA plane when we're setting our native modes.
2006-04-06 16:00:34 -07:00
Eric Anholt
ceb08d28f4
Remove the hacky-looking Set640x480. I'll be removing things it depends on
...
(setpipe), and I suspect we'll end up with different hacks for resume, anyway.
2006-04-06 16:00:32 -07:00
Eric Anholt
1f0ba458d0
Remove more BIOS stuff, particularly Get/SetDisplayDevices. Now, if there's no
...
hardcoding in the config file, we default to LFP if we detect it from BIOS, and
LFP or CRT if we can get EDID out of them.
2006-04-06 16:00:24 -07:00
Eric Anholt
b20b466aae
Remove the now-unused displaySize and pipeDisplaySize.
2006-04-06 16:00:14 -07:00
Eric Anholt
d960c3ca15
Remove more BIOS modesetting stuff.
2006-04-06 16:00:12 -07:00
Keith Packard
4e3a482700
autodetect LVDS dither. Fix 16bpp depth selection
2006-04-06 16:00:08 -07:00
Eric Anholt
8d27f8246e
Clean up (and I believe fix a couple of bugs in) the divisor selection code.
2006-04-06 16:00:06 -07:00
Eric Anholt
e45581cd07
Fill in clock information from VBT table, so that a good clock value gets
...
requested for choosing divisors.
2006-04-06 16:00:03 -07:00
Eric Anholt
33977d2383
Port code from radeon driver for panel mode validation, which will hopefully get
...
the right mode chosen on the VAIO. Untested.
2006-04-06 15:59:51 -07:00
Eric Anholt
febdfa967d
Remove some VBE DDC code that I believe is OBE.
2006-04-06 15:59:44 -07:00
Eric Anholt
f86892c916
Make auto panel fitting work by pulling LVDS timing EDID info out of the static
...
BIOS table, and always using that.
2006-04-06 15:59:43 -07:00
Eric Anholt
f6a3243f40
Add more VBT reading, so we find the panel size.
2006-04-06 15:59:28 -07:00
Eric Anholt
64756e2150
Start interpreting VBT information with the goal of pulling out LVDS timings
...
for panel fitting.
2006-04-06 15:59:26 -07:00
Eric Anholt
c2d554be67
Save/restore a couple of important VGA plane registers, and have vgahw
...
save/restore everything it knows about. Also moves the save to just after the
other reg saves, above the VBE save stuff which may have side effects.
2006-04-06 15:59:14 -07:00
Eric Anholt
8411c126ae
Update to newer airlied DDC code, and do some cleanups as well. Now tries DDC
...
on LVDS, though my current LVDS gives no results.
2006-04-06 15:58:59 -07:00
Eric Anholt
6414ad89b9
Add enough of airlied's DDC/I2C work to pull EDID info from my CRT.
2006-04-06 15:58:47 -07:00
Eric Anholt
5215e19af5
Add some register information for VGACNTRL, and do the reg-debug thing on it.
2006-04-06 15:58:45 -07:00