x86,AMD: Power driver support for AMD's family 16h processors
authorBoris Ostrovsky <boris.ostrovsky@amd.com>
Wed, 5 Dec 2012 11:12:42 +0000 (06:12 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 5 Dec 2012 18:54:41 +0000 (10:54 -0800)
Add family 16h PCI ID to AMD's power driver to allow it report
power consumption on these processors.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/fam15h_power.c

index 4f4110407387fce21c4e58cdc76dfec6093b6183..34ab2a8f96549cea10496849f75ea9345c2370cd 100644 (file)
@@ -31,6 +31,9 @@ MODULE_DESCRIPTION("AMD Family 15h CPU processor power monitor");
 MODULE_AUTHOR("Andreas Herrmann <herrmann.der.user@googlemail.com>");
 MODULE_LICENSE("GPL");
 
+/* Family 16h Northbridge's function 4 PCI ID */
+#define PCI_DEVICE_ID_AMD_16H_NB_F4    0x1534
+
 /* D18F3 */
 #define REG_NORTHBRIDGE_CAP            0xe8
 
@@ -248,6 +251,7 @@ static void __devexit fam15h_power_remove(struct pci_dev *pdev)
 
 static DEFINE_PCI_DEVICE_TABLE(fam15h_power_id_table) = {
        { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) },
+       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F4) },
        {}
 };
 MODULE_DEVICE_TABLE(pci, fam15h_power_id_table);
This page took 0.053748 seconds and 5 git commands to generate.