From 68db3a2bdc335519003c7f18ead043d7507718aa Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Wed, 14 May 2008 12:03:06 +0000 Subject: Check the JEDEC vendor ID for correct parity. Flash chips which can be detected by JEDEC probe routines all have vendor IDs with correct parity. Use a parity check as additional hint whether a vendor ID makes sense. Note: Device IDs have no parity requirements whatsoever. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3308 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/flash.h | 1 + 1 file changed, 1 insertion(+) (limited to 'util/flashrom/flash.h') diff --git a/util/flashrom/flash.h b/util/flashrom/flash.h index 67f49c6932..37d7dc0caf 100644 --- a/util/flashrom/flash.h +++ b/util/flashrom/flash.h @@ -396,6 +396,7 @@ int it8716f_spi_chip_write(struct flashchip *flash, uint8_t *buf); void it8716f_spi_page_program(int block, uint8_t *buf, uint8_t *bios); /* jedec.c */ +uint8_t oddparity(uint8_t val); void toggle_ready_jedec(volatile uint8_t *dst); void data_polling_jedec(volatile uint8_t *dst, uint8_t data); void unprotect_jedec(volatile uint8_t *bios); -- cgit v1.2.3