From 6e9e2ee2f4411de03bcbf7c2e8cb14c08fec90e4 Mon Sep 17 00:00:00 2001 From: Wang Qing Pei Date: Fri, 26 Aug 2011 21:11:41 +0000 Subject: 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 Acked-by: Uwe Hermann --- sb600spi.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sb600spi.c') 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. */ -- cgit v1.1