1 diff -Nur linux-4.15.13.orig/arch/arm/Kconfig linux-4.15.13/arch/arm/Kconfig
2 --- linux-4.15.13.orig/arch/arm/Kconfig 2018-03-24 11:02:53.000000000 +0100
3 +++ linux-4.15.13/arch/arm/Kconfig 2018-04-01 03:47:33.415078244 +0100
8 +config ARM_SINGLE_ARCH_VERSATILE
9 + bool "ARM Ltd. Versatile family"
11 + select AUTO_ZRELADDR
14 + select GENERIC_CLOCKEVENTS
21 select ARCH_USES_GETTIMEOFFSET
22 diff -Nur linux-4.15.13.orig/arch/arm/Kconfig.debug linux-4.15.13/arch/arm/Kconfig.debug
23 --- linux-4.15.13.orig/arch/arm/Kconfig.debug 2018-03-24 11:02:53.000000000 +0100
24 +++ linux-4.15.13/arch/arm/Kconfig.debug 2018-04-01 03:47:33.416078232 +0100
26 config UNCOMPRESS_INCLUDE
28 default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM || \
29 - PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
30 + PLAT_SAMSUNG || ARM_SINGLE_ARMV7M || \
31 + ARM_SINGLE_ARCH_VERSATILE
32 default "mach/uncompress.h"
35 diff -Nur linux-4.15.13.orig/arch/arm/include/asm/mach/map.h linux-4.15.13/arch/arm/include/asm/mach/map.h
36 --- linux-4.15.13.orig/arch/arm/include/asm/mach/map.h 2018-03-24 11:02:53.000000000 +0100
37 +++ linux-4.15.13/arch/arm/include/asm/mach/map.h 2018-04-01 03:47:17.587276119 +0100
40 #define iotable_init(map,num) do { } while (0)
41 #define vm_reserve_area_early(a,s,c) do { } while (0)
42 +#define debug_ll_io_init() do { } while (0)
46 diff -Nur linux-4.15.13.orig/arch/arm/mach-versatile/Kconfig linux-4.15.13/arch/arm/mach-versatile/Kconfig
47 --- linux-4.15.13.orig/arch/arm/mach-versatile/Kconfig 2018-03-24 11:02:53.000000000 +0100
48 +++ linux-4.15.13/arch/arm/mach-versatile/Kconfig 2018-04-01 03:47:33.417078219 +0100
50 # SPDX-License-Identifier: GPL-2.0
52 - bool "ARM Ltd. Versatile family"
53 - depends on ARCH_MULTI_V5
54 + bool "ARM Ltd. Versatile family" if ARCH_MULTI_V5
55 + depends on ARCH_MULTI_V5 || ARM_SINGLE_ARCH_VERSATILE
56 + default y if ARM_SINGLE_ARCH_VERSATILE
58 select ARM_TIMER_SP804
60 diff -Nur linux-4.15.13.orig/arch/arm/mach-versatile/Makefile.boot linux-4.15.13/arch/arm/mach-versatile/Makefile.boot
61 --- linux-4.15.13.orig/arch/arm/mach-versatile/Makefile.boot 1970-01-01 01:00:00.000000000 +0100
62 +++ linux-4.15.13/arch/arm/mach-versatile/Makefile.boot 2018-04-01 03:47:25.644175394 +0100
64 +# Empty file waiting for deletion once Makefile.boot isn't needed any more.
65 +# Patch waits for application at
66 +# http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7889/1 .
67 diff -Nur linux-4.15.13.orig/arch/arm/mach-versatile/versatile_dt.c linux-4.15.13/arch/arm/mach-versatile/versatile_dt.c
68 --- linux-4.15.13.orig/arch/arm/mach-versatile/versatile_dt.c 2018-03-24 11:02:53.000000000 +0100
69 +++ linux-4.15.13/arch/arm/mach-versatile/versatile_dt.c 2018-04-01 03:47:10.913359555 +0100
71 #include <asm/mach/map.h>
73 /* macro to get at MMIO space when running virtually */
75 #define IO_ADDRESS(x) (((x) & 0x0fffffff) + (((x) >> 4) & 0x0f000000) + 0xf0000000)
77 +#define IO_ADDRESS(x) (x)
79 #define __io_address(n) ((void __iomem __force *)IO_ADDRESS(n))