mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
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. Corresponding to flashrom svn r231 and coreboot v2 svn r3308. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Peter Stuge <peter@stuge.se>
This commit is contained in:
1
flash.h
1
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);
|
||||
|
Reference in New Issue
Block a user