]> git.ipfire.org Git - people/jschlag/ipfire-2.x.git/commitdiff
kernel: k10temp: add family 16h model 30h pci id.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 26 Mar 2016 09:08:18 +0000 (10:08 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 26 Mar 2016 09:08:18 +0000 (10:08 +0100)
used by AMD GX-412TC in PC Engines(TM) APU 2

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/linux
src/patches/linux-3.14.65-k10temp_add_16H_M30H_id.patch [new file with mode: 0644]

index 125228a36d74e2b85671530fe5c4c412ea8e2606..350203014a6c8f37a60fe7d77d067135c776f303 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -160,6 +160,9 @@ endif
        # Add PC Engines APU led support
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.14-apu_leds.patch
 
+       # Add APU2 SoC ID to k10temp
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.14.65-k10temp_add_16H_M30H_id.patch
+
        # Fix uevent PHYSDEVDRIVER
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.2.33_ipg-fix-driver-name.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.27_mcs7830-fix-driver-name.patch
diff --git a/src/patches/linux-3.14.65-k10temp_add_16H_M30H_id.patch b/src/patches/linux-3.14.65-k10temp_add_16H_M30H_id.patch
new file mode 100644 (file)
index 0000000..878f44e
--- /dev/null
@@ -0,0 +1,12 @@
+diff -Naur linux-3.14.65.org/drivers/hwmon/k10temp.c linux-3.14.65/drivers/hwmon/k10temp.c
+--- linux-3.14.65.org/drivers/hwmon/k10temp.c  2016-03-16 16:42:30.000000000 +0100
++++ linux-3.14.65/drivers/hwmon/k10temp.c      2016-03-25 15:52:21.920190727 +0100
+@@ -212,6 +212,8 @@
+       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_M10H_F3) },
+       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_M30H_NB_F3) },
+       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F3) },
++//    { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_M30H_NB_F3) },
++      { PCI_VDEVICE(AMD, 0x1583) },
+       {}
+ };
+ MODULE_DEVICE_TABLE(pci, k10temp_id_table);