summaryrefslogtreecommitdiff
path: root/src/geode_ddc.c
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2008-08-07 14:29:50 -0600
committerJordan Crouse <jordan.crouse@amd.com>2008-08-07 14:30:31 -0600
commit316e89aa58f4d7f3cb4513a6decb035e99abc7d6 (patch)
tree0dbd7662f9f5d387d2f921d235d32ca7d0595ea5 /src/geode_ddc.c
parentf89f6d8004a0ae0ae7826f72a1058d26e9e0217a (diff)
Geode: Add DDC support for the CS5535
Diffstat (limited to 'src/geode_ddc.c')
-rw-r--r--src/geode_ddc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/geode_ddc.c b/src/geode_ddc.c
index 419c93b..c167df7 100644
--- a/src/geode_ddc.c
+++ b/src/geode_ddc.c
@@ -56,6 +56,7 @@
#define DDC_CLK_LOW (DDC_SCL_PIN << 16)
#define CS5536_ISA_DEVICE 0x20901022
+#define CS5535_ISA_DEVICE 0x002b100b
static unsigned short
geode_gpio_iobase(void)
@@ -76,8 +77,12 @@ geode_gpio_iobase(void)
Tag = pciFindFirst(CS5536_ISA_DEVICE, 0xFFFFFFFF);
- if (Tag == PCI_NOT_FOUND)
- return 0;
+ if (Tag == PCI_NOT_FOUND) {
+ Tag = pciFindFirst(CS5535_ISA_DEVICE, 0xFFFFFFFF);
+
+ if (Tag == PCI_NOT_FOUND)
+ return 0;
+ }
/* The GPIO I/O address is in resource 1 */
return (unsigned short)(pciReadLong(Tag, 0x14) & ~1);