Longhaul - Disable arbiter CLE266
PATCH 1/1 Longhaul - Disable arbiter CLE266
I have datasheet for CLE266 now. It is possible to enable port 0x22 on this chipset too.
This patch is adding support for older CPU connected to CLE266 chipset.
Signed-off-by Rafa³ Bilski <[email protected]>
---
arch/i386/kernel/cpu/cpufreq/longhaul.c +9 -2
@@ -567,16 +567,23 @@ static acpi_status longhaul_walk_callbacstatic int enable_arbiter_disable (void ) {struct pci_dev *dev; +int port;u8 pci_cmd;/* Find PLE133 host bridge */ + port =0x78 ; dev =pci_find_device (PCI_VENDOR_ID_VIA ,PCI_DEVICE_ID_VIA_8601_0 ,NULL ); +/* Find CLE266 host bridge */ +if (dev ==NULL ) { + dev =pci_find_device (PCI_VENDOR_ID_VIA ,PCI_DEVICE_ID_VIA_862X_0 ,NULL ); + port =0x76 ; + }if (dev !=NULL ) {/* Enable access to port 0x22 */ -pci_read_config_byte (dev,0x78 , &pci_cmd); +pci_read_config_byte (dev, port, &pci_cmd);if ( !(pci_cmd &1 <<7 ) ) { pci_cmd |=1 <<7 ; -pci_write_config_byte (dev,0x78 , pci_cmd); +pci_write_config_byte (dev, port, pci_cmd); }return 1 ; }
----------------------------------------------------------------------
Jestes kierowca? To poczytaj! >>> http://link.interia.pl/f199e