From 4c5b161e3f0a2daa7d37bb9d77b5dba468dd3c0e Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Fri, 28 Jun 2013 14:33:30 -0700 Subject: EDID: add fields specialized to the needs of framebuffers Now that we have horizontal display areas that are not multiples of 32 bytes, things are more complex. We add three struct members (x, y resolution and bytes per line) which are to be filled in by the mainboard as it sets the mode. In future, the EDID code may take a stab at initializing these but the values are context-dependent. Change-Id: Ib9102d6bbf8c66931f5adb1029a04b881a982cfe Signed-off-by: Ronald G. Minnich Reviewed-on: https://gerrit.chromium.org/gerrit/60514 Tested-by: Ronald G. Minnich Reviewed-by: Aaron Durbin Commit-Queue: Ronald G. Minnich Reviewed-on: http://review.coreboot.org/4336 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/include/edid.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/include/edid.h') diff --git a/src/include/edid.h b/src/include/edid.h index 7d4736dc33..ce1f615709 100644 --- a/src/include/edid.h +++ b/src/include/edid.h @@ -55,6 +55,14 @@ struct edid { unsigned int vso; unsigned int vspw; unsigned int vborder; + /* 3 variables needed for coreboot framebuffer. + * In most cases, they are the same as the ha + * and va variables, but not always, as in the + * case of a 1366 wide display. + */ + u32 x_resolution; + u32 y_resolution; + u32 bytes_per_line; /* it is unlikely we need these things. */ /* if one of these is non-zero, use that one. */ unsigned int aspect_landscape; -- cgit v1.2.3