summaryrefslogtreecommitdiff
path: root/target/linux/patches/4.4.88/versatile-nommu.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-09-16 17:26:25 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-09-16 17:26:25 +0200
commit79d5a4a7dc9648e2d55407ca11daa9a4342abe72 (patch)
tree412e19f7903b1933d19d27b2e139e2524de39f9e /target/linux/patches/4.4.88/versatile-nommu.patch
parent1863be7c63a2ac49bcb447c52ae6b9428a8ed1cd (diff)
linux: bump all lts / stable to latest
Diffstat (limited to 'target/linux/patches/4.4.88/versatile-nommu.patch')
-rw-r--r--target/linux/patches/4.4.88/versatile-nommu.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/patches/4.4.88/versatile-nommu.patch b/target/linux/patches/4.4.88/versatile-nommu.patch
new file mode 100644
index 000000000..96140b30c
--- /dev/null
+++ b/target/linux/patches/4.4.88/versatile-nommu.patch
@@ -0,0 +1,16 @@
+diff -Nur linux-4.4.17.orig/arch/arm/mach-versatile/include/mach/hardware.h linux-4.4.17/arch/arm/mach-versatile/include/mach/hardware.h
+--- linux-4.4.17.orig/arch/arm/mach-versatile/include/mach/hardware.h 2016-08-10 11:49:43.000000000 +0200
++++ linux-4.4.17/arch/arm/mach-versatile/include/mach/hardware.h 2016-08-25 23:19:03.691716292 +0200
+@@ -30,8 +30,12 @@
+ #define VERSATILE_PCI_VIRT_BASE (void __iomem *)0xe8000000ul
+ #define VERSATILE_PCI_CFG_VIRT_BASE (void __iomem *)0xe9000000ul
+
++#ifdef CONFIG_MMU
+ /* macro to get at MMIO space when running virtually */
+ #define IO_ADDRESS(x) (((x) & 0x0fffffff) + (((x) >> 4) & 0x0f000000) + 0xf0000000)
++#else
++#define IO_ADDRESS(x) (x)
++#endif
+
+ #define __io_address(n) ((void __iomem __force *)IO_ADDRESS(n))
+