linux: update to latest 4.4.x
[openadk.git] / target / linux / patches / 4.4.211 / versatile-nommu.patch
blob96140b30c6bd0821b005e9d7e518dd53c0c60fff
1 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
2 --- linux-4.4.17.orig/arch/arm/mach-versatile/include/mach/hardware.h 2016-08-10 11:49:43.000000000 +0200
3 +++ linux-4.4.17/arch/arm/mach-versatile/include/mach/hardware.h 2016-08-25 23:19:03.691716292 +0200
4 @@ -30,8 +30,12 @@
5 #define VERSATILE_PCI_VIRT_BASE (void __iomem *)0xe8000000ul
6 #define VERSATILE_PCI_CFG_VIRT_BASE (void __iomem *)0xe9000000ul
8 +#ifdef CONFIG_MMU
9 /* macro to get at MMIO space when running virtually */
10 #define IO_ADDRESS(x) (((x) & 0x0fffffff) + (((x) >> 4) & 0x0f000000) + 0xf0000000)
11 +#else
12 +#define IO_ADDRESS(x) (x)
13 +#endif
15 #define __io_address(n) ((void __iomem __force *)IO_ADDRESS(n))