lib/edid.c: Differentiate between absent and non-conformant EDID

Change-Id: Id90aa210ff72092c4ab638a7bafb82bd11889bdc
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/19502
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Arthur Heymans
2017-04-30 08:28:05 +02:00
committed by Nico Huber
parent a459a8a145
commit 8c5884e8d7
7 changed files with 28 additions and 21 deletions

View File

@@ -91,6 +91,12 @@ struct edid {
int hdmi_monitor_detected;
};
enum edid_status {
EDID_CONFORMANT,
EDID_NOT_CONFORMANT,
EDID_ABSENT,
};
/* Defined in src/lib/edid.c */
int decode_edid(unsigned char *edid, int size, struct edid *out);
void edid_set_framebuffer_bits_per_pixel(struct edid *edid, int fb_bpp,