mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-29 16:03:47 +02:00
Check that the expected winbond Super I/O was found
Corresponding to flashrom svn r1064. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
parent
ea36c9cb5c
commit
979d925223
@ -264,6 +264,11 @@ static int winbond_gpio_set(uint16_t base, enum winbond_id chipid,
|
|||||||
msg_perr("\nERROR: No supported Winbond Super I/O found\n");
|
msg_perr("\nERROR: No supported Winbond Super I/O found\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
if (chip->device_id != chipid) {
|
||||||
|
msg_perr("\nERROR: Found Winbond chip with ID 0x%x, "
|
||||||
|
"expected %x\n", chip->device_id, chipid);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
if (bit >= 8 || port == 0 || port > chip->gpio_port_count) {
|
if (bit >= 8 || port == 0 || port > chip->gpio_port_count) {
|
||||||
msg_perr("\nERROR: winbond_gpio_set: Invalid GPIO number %d\n",
|
msg_perr("\nERROR: winbond_gpio_set: Invalid GPIO number %d\n",
|
||||||
pin);
|
pin);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user