diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-27 14:38:20 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-27 14:38:30 +0100 |
commit | 9f7daa8c21b22cfec7dd32087122310256a3f42c (patch) | |
tree | 20fee796d74af7d7bbe2dad03b06d410c43a35a3 /target/linux/patches/3.12.69/versatile-nommu.patch | |
parent | fe3d03e96c59534c81e6eb2a8b6e39b44f11bb2b (diff) |
linux: update to 3.12.69, add qemu arm nommu patch
Diffstat (limited to 'target/linux/patches/3.12.69/versatile-nommu.patch')
-rw-r--r-- | target/linux/patches/3.12.69/versatile-nommu.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/patches/3.12.69/versatile-nommu.patch b/target/linux/patches/3.12.69/versatile-nommu.patch new file mode 100644 index 000000000..a4b99ad54 --- /dev/null +++ b/target/linux/patches/3.12.69/versatile-nommu.patch @@ -0,0 +1,16 @@ +diff -Nur linux-3.12.69.orig/arch/arm/mach-versatile/include/mach/hardware.h linux-3.12.69/arch/arm/mach-versatile/include/mach/hardware.h +--- linux-3.12.69.orig/arch/arm/mach-versatile/include/mach/hardware.h 2016-12-13 20:52:06.000000000 +0100 ++++ linux-3.12.69/arch/arm/mach-versatile/include/mach/hardware.h 2016-12-27 14:28:35.896220019 +0100 +@@ -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)) + |