edid: Sanitize bad EDID header patterns

Some devices fail to transmit the EDID header pattern correctly. To
compensate, we patch EDID header patterns when at least six out of
the eight bytes match. We then verify the checksum over all bytes
including the patched header.

Linux does it similar and gets more displays up that way, sigh.

Change-Id: Ic63880a05e64f40dfda165bd54e708cd981f08fb
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/17493
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
3 files changed
tree: 95f81d53e48e5c8d6190ab7b378beee3adbfc2dc
  1. common/
  2. configs/
  3. .gitignore
  4. COPYING
  5. Makefile
  6. Makefile.inc
  7. TODO