summaryrefslogtreecommitdiffstats
path: root/sb600spi.c
diff options
context:
space:
mode:
authorWang Qing Pei <wangqingpei@gmail.com>2011-08-26 21:11:41 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2011-08-26 21:11:41 +0000
commit5fc83e4759d471c5da02afd0b56b29351de41f33 (patch)
tree0f2036a03849d5b3e4824e4a4391f7cc45892f7c /sb600spi.c
parentd413a8d37a83483ec75384d217a8b784c4d05926 (diff)
downloadflashrom-5fc83e4759d471c5da02afd0b56b29351de41f33.zip
flashrom-5fc83e4759d471c5da02afd0b56b29351de41f33.tar.gz
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>
Diffstat (limited to 'sb600spi.c')
-rw-r--r--sb600spi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sb600spi.c b/sb600spi.c
index 5ad5782..9d82b47 100644
--- a/sb600spi.c
+++ b/sb600spi.c
@@ -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. */
OpenPOWER on IntegriCloud