aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/patches-5.15/301-fix-memory-map-wndr4700.patch
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2022-05-05 18:16:25 +0200
committerChristian Lamparter <chunkeey@gmail.com>2022-05-07 16:27:27 +0200
commitb2c9c4dda28dd9bd82df629d96d626d2c236f382 (patch)
tree55979d041024180e818603f0d7e5ae1ee47ccbe1 /target/linux/apm821xx/patches-5.15/301-fix-memory-map-wndr4700.patch
parentfd836f3d15fdfcb15b8b94303d102cb1e37f53ba (diff)
downloadupstream-b2c9c4dda28dd9bd82df629d96d626d2c236f382.tar.gz
upstream-b2c9c4dda28dd9bd82df629d96d626d2c236f382.tar.bz2
upstream-b2c9c4dda28dd9bd82df629d96d626d2c236f382.zip
apm821xx: add support for kernel 5.15 for testing
This patch copies over refreshed config and patches from 5.10 with the following changes: - dropped superfluous tc654/tc655 variant detection patch (tc654 support will become available upstream starting with 5.17-rc7+). - dropped xhci msi(x) workaround... as the broken MSI(X) is now gone. - dropped dwc2 workaround since the driver was fixed and it works without it. Please note: Netgear WNDAP660 & WNDAP620 users: Due to the kernel's size increase, uboot will likely break because it is overwrite the kernel during decompression. To fix this (and debrick affected devices, no reflash necessary), attach the RJ45-Serial-Console cable and enter the following in the uboot prompt during bootup: setenv kernel_addr_r 1100000 saveenv run bootcmd to restore the old/previous behavior: setenv kernel_addr_r 600000 saveenv run bootcmd Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/patches-5.15/301-fix-memory-map-wndr4700.patch')
-rw-r--r--target/linux/apm821xx/patches-5.15/301-fix-memory-map-wndr4700.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/apm821xx/patches-5.15/301-fix-memory-map-wndr4700.patch b/target/linux/apm821xx/patches-5.15/301-fix-memory-map-wndr4700.patch
new file mode 100644
index 0000000000..452d97e85a
--- /dev/null
+++ b/target/linux/apm821xx/patches-5.15/301-fix-memory-map-wndr4700.patch
@@ -0,0 +1,14 @@
+--- a/arch/powerpc/platforms/4xx/pci.c
++++ b/arch/powerpc/platforms/4xx/pci.c
+@@ -1902,9 +1902,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);
+