1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

Add AMD Hudson chipset-enable

AMD Hudson has different vendor/device IDs than AMD SBx00, handle
that properly.

Corresponding to flashrom svn r1422.

Signed-off-by: Wang Qing Pei <wangqingpei@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
Wang Qing Pei
2011-08-26 21:11:41 +00:00
committed by Uwe Hermann
parent 09ebd52e01
commit 6e9e2ee2f4
2 changed files with 6 additions and 2 deletions

View File

@ -259,8 +259,11 @@ int sb600_probe_spi(struct pci_dev *dev)
smbus_dev = pci_dev_find(0x1002, 0x4385);
if (!smbus_dev) {
msg_perr("ERROR: SMBus device not found. Not enabling SPI.\n");
return ERROR_NONFATAL;
smbus_dev = pci_dev_find(0x1022, 0x780b); /* AMD Hudson */
if (!smbus_dev) {
msg_perr("ERROR: SMBus device not found. Not enabling SPI.\n");
return ERROR_NONFATAL;
}
}
/* Note about the bit tests below: If a bit is zero, the GPIO is SPI. */