diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-02-05 04:21:19 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-08 18:31:20 -0500 |
commit | 3c537889e17232e9073f75ae8710ea0f008c5a29 (patch) | |
tree | 9d3c25825b466b8ddc3fdc8224d4484c99173b08 /drivers/gpu/drm/radeon/radeon_mode.h | |
parent | 2739d49cd7f1f44876cad614b072da698967b370 (diff) |
drm/radeon/kms: add support for hardcoded edids in rom (v2)
Some servers hardcode an edid in rom so that they will
work properly with KVMs. This is a port of the relevant
code from the ddx.
[airlied: reworked to validate edid at boot stage - and
remove special quirk, if there is a valid EDID in the BIOS rom
we'll just try and use it.]
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_mode.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index b884bacf09ff..71439ba2feeb 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -207,7 +207,8 @@ struct radeon_mode_info { | |||
207 | struct drm_property *tv_std_property; | 207 | struct drm_property *tv_std_property; |
208 | /* legacy TMDS PLL detect */ | 208 | /* legacy TMDS PLL detect */ |
209 | struct drm_property *tmds_pll_property; | 209 | struct drm_property *tmds_pll_property; |
210 | 210 | /* hardcoded DFP edid from BIOS */ | |
211 | struct edid *bios_hardcoded_edid; | ||
211 | }; | 212 | }; |
212 | 213 | ||
213 | #define MAX_H_CODE_TIMING_LEN 32 | 214 | #define MAX_H_CODE_TIMING_LEN 32 |
@@ -479,6 +480,9 @@ extern int radeon_crtc_cursor_set(struct drm_crtc *crtc, | |||
479 | extern int radeon_crtc_cursor_move(struct drm_crtc *crtc, | 480 | extern int radeon_crtc_cursor_move(struct drm_crtc *crtc, |
480 | int x, int y); | 481 | int x, int y); |
481 | 482 | ||
483 | extern bool radeon_combios_check_hardcoded_edid(struct radeon_device *rdev); | ||
484 | extern struct edid * | ||
485 | radeon_combios_get_hardcoded_edid(struct radeon_device *rdev); | ||
482 | extern bool radeon_atom_get_clock_info(struct drm_device *dev); | 486 | extern bool radeon_atom_get_clock_info(struct drm_device *dev); |
483 | extern bool radeon_combios_get_clock_info(struct drm_device *dev); | 487 | extern bool radeon_combios_get_clock_info(struct drm_device *dev); |
484 | extern struct radeon_encoder_atom_dig * | 488 | extern struct radeon_encoder_atom_dig * |