summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafaƂ Bilski <rafalbilski@interia.pl>2007-05-17 22:35:29 +0200
committerDave Jones <davej@redhat.com>2007-05-29 16:56:39 -0400
commit920dd0fbba1a7aa34c45b73699dcaf092850df51 (patch)
tree16667b7814d46f8b21e72bbf13f754486a5c0c04
parent7d5edcc028f1bed2542a96edc2356e484f01ee47 (diff)
downloadlinux-920dd0fbba1a7aa34c45b73699dcaf092850df51.tar.gz
linux-920dd0fbba1a7aa34c45b73699dcaf092850df51.tar.bz2
linux-920dd0fbba1a7aa34c45b73699dcaf092850df51.zip
[CPUFREQ] Longhaul - VT8237 support
Looks like VT8237 has the same bits which VT8235 has. Poke registers if it is found. Signed-off-by: Rafal Bilski <rafalbilski@interia.pl> Signed-off-by: Dave Jones <davej@redhat.com>
-rw-r--r--arch/i386/kernel/cpu/cpufreq/longhaul.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/longhaul.c b/arch/i386/kernel/cpu/cpufreq/longhaul.c
index f85cff4ebba5..d004e073b479 100644
--- a/arch/i386/kernel/cpu/cpufreq/longhaul.c
+++ b/arch/i386/kernel/cpu/cpufreq/longhaul.c
@@ -633,6 +633,10 @@ static int longhaul_setup_southbridge(void)
/* Find VT8235 southbridge */
dev = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235, NULL);
+ if (dev == NULL)
+ /* Find VT8237 southbridge */
+ dev = pci_get_device(PCI_VENDOR_ID_VIA,
+ PCI_DEVICE_ID_VIA_8237, NULL);
if (dev != NULL) {
/* Set transition time to max */
pci_read_config_byte(dev, 0xec, &pci_cmd);