ICH6 ACPI and GPIO quirk
PATCH 1/1 ICH6 ACPI and GPIO quirk
Hello,
This patch just adds ACPI and GPIO regions to its LPC bridge, similar way as ICH4 did. I would like to thank Michal Mleczko for testing.
Please apply.
Signed-off-by Rudolf Marek <[email protected]>
Regards
Rudolf
drivers/pci/quirks.c +13 -0
@@ -339,6 +339,19 @@DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82801EB_0 , quirk_ich4_lpc_acpi );DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_ESB_1 , quirk_ich4_lpc_acpi ); +static void __devinit quirk_ich6_lpc_acpi (struct pci_dev *dev) +{ +u32 region; + +pci_read_config_dword (dev,0x40 , ®ion); +quirk_io_region (dev, region,128 ,PCI_BRIDGE_RESOURCES ); + +pci_read_config_dword (dev,0x48 , ®ion); +quirk_io_region (dev, region,64 ,PCI_BRIDGE_RESOURCES +1 ); +} + +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_ICH6_1 , quirk_ich6_lpc_acpi ); +/* * VIA ACPI: One IO region pointed to by longword at * 0x48 or 0x20 (256 bytes of ACPI registers)
PATCH 1/1 ICH6 ACPI and GPIO quirk
Quoted 3 lines · Craig Sylla
Pardon me - would it be advisable to apply this patch to a 2.6.5 kernel running on an ICH6-equipped mainboard? I have already tweaked the i801 driver to support the ICH6 (added PCI ID's).
Hello,
This patch is not changing any stuff. It just registers with /proc/ioports the ACPI and GPIO regions provided by LPC bridge, so no other devices will think this IO addresses are free. It does not tweak any HW.
To answer your question: it wont hurt if you port it to your kernel.
Regards
Rudolf