diff options
author | Eric Anholt <eric@anholt.net> | 2007-02-15 09:51:04 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-02-15 10:27:16 -0800 |
commit | 4541150cdce3f2f83b8530d0863aecf28c6610a9 (patch) | |
tree | 54418ce5e4398450a74abea96d5bec3de69c980e /src/i810_reg.h | |
parent | d1be0dc4e9d443dcbd218a083cfb21a0b5d634ee (diff) |
Detect core clock frequencies, to avoid double-wide mode when possible.
Additionally, don't attempt to set double-wide on the 965, where there is
no such thing any more (not that we'd ever see modes high enough to trigger
it).
Diffstat (limited to 'src/i810_reg.h')
-rw-r--r-- | src/i810_reg.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/i810_reg.h b/src/i810_reg.h index 68cce930..2c060564 100644 --- a/src/i810_reg.h +++ b/src/i810_reg.h @@ -1848,6 +1848,19 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define I852_GME 0x2 #define I852_GM 0x5 +#define I915_GCFGC 0xf0 +#define I915_LOW_FREQUENCY_ENABLE (1 << 7) +#define I915_DISPLAY_CLOCK_190_200_MHZ (0 << 4) +#define I915_DISPLAY_CLOCK_333_MHZ (4 << 4) +#define I915_DISPLAY_CLOCK_MASK (7 << 4) + +#define I855_HPLLCC 0xc0 +#define I855_CLOCK_CONTROL_MASK (3 << 0) +#define I855_CLOCK_133_200 (0 << 0) +#define I855_CLOCK_100_200 (1 << 0) +#define I855_CLOCK_100_133 (2 << 0) +#define I855_CLOCK_166_250 (3 << 0) + /* BLT commands */ #define COLOR_BLT_CMD ((2<<29)|(0x40<<22)|(0x3)) #define COLOR_BLT_WRITE_ALPHA (1<<21) |