aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/patches-4.14/301-fix-memory-map-wndr4700.patch
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2018-01-07 21:27:48 +0100
committerMathias Kresin <dev@kresin.me>2018-01-12 08:00:04 +0100
commit15faf389ad5159fa8223344029c98a0afca6e5ef (patch)
tree68e652f9cd4ff7753620d9a8882643e3a8a85077 /target/linux/apm821xx/patches-4.14/301-fix-memory-map-wndr4700.patch
parent9a9c7fb4cf8a0483b26b2d9ecc481275173d63f7 (diff)
downloadupstream-15faf389ad5159fa8223344029c98a0afca6e5ef.tar.gz
upstream-15faf389ad5159fa8223344029c98a0afca6e5ef.tar.bz2
upstream-15faf389ad5159fa8223344029c98a0afca6e5ef.zip
apm821xx: add linux 4.14 apm821xx patches
This patch updates the apm821xx target to use the 4.14 kernel. 4.14 finally ships with a driver for the WNDR4700's tc654 fan controller. The custom driver is deprecated in favor of the upstream driver and the thermal cooling definitions in the DTS are updated. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/patches-4.14/301-fix-memory-map-wndr4700.patch')
-rw-r--r--target/linux/apm821xx/patches-4.14/301-fix-memory-map-wndr4700.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/apm821xx/patches-4.14/301-fix-memory-map-wndr4700.patch b/target/linux/apm821xx/patches-4.14/301-fix-memory-map-wndr4700.patch
new file mode 100644
index 0000000000..6eb04b2c25
--- /dev/null
+++ b/target/linux/apm821xx/patches-4.14/301-fix-memory-map-wndr4700.patch
@@ -0,0 +1,14 @@
+--- a/arch/powerpc/platforms/4xx/pci.c
++++ b/arch/powerpc/platforms/4xx/pci.c
+@@ -1905,9 +1905,9 @@ static void __init ppc4xx_configure_pcie
+ * if it works
+ */
+ out_le32(mbase + PECFG_PIM0LAL, 0x00000000);
+- out_le32(mbase + PECFG_PIM0LAH, 0x00000000);
++ out_le32(mbase + PECFG_PIM0LAH, 0x00000008);
+ out_le32(mbase + PECFG_PIM1LAL, 0x00000000);
+- out_le32(mbase + PECFG_PIM1LAH, 0x00000000);
++ out_le32(mbase + PECFG_PIM1LAH, 0x0000000c);
+ out_le32(mbase + PECFG_PIM01SAH, 0xffff0000);
+ out_le32(mbase + PECFG_PIM01SAL, 0x00000000);
+