1 diff -Nur linux-4.9.88.orig/arch/arm/Kconfig linux-4.9.88/arch/arm/Kconfig
2 --- linux-4.9.88.orig/arch/arm/Kconfig 2018-03-18 11:18:56.000000000 +0100
3 +++ linux-4.9.88/arch/arm/Kconfig 2018-04-01 04:36:26.415410694 +0100
6 Support for the Cortina Systems Gemini family SoCs
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.9.88.orig/arch/arm/Kconfig.debug linux-4.9.88/arch/arm/Kconfig.debug
23 --- linux-4.9.88.orig/arch/arm/Kconfig.debug 2018-03-18 11:18:56.000000000 +0100
24 +++ linux-4.9.88/arch/arm/Kconfig.debug 2018-04-01 04:36:26.415410694 +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.9.88.orig/arch/arm/include/asm/mach/map.h linux-4.9.88/arch/arm/include/asm/mach/map.h
36 --- linux-4.9.88.orig/arch/arm/include/asm/mach/map.h 2018-03-18 11:18:56.000000000 +0100
37 +++ linux-4.9.88/arch/arm/include/asm/mach/map.h 2018-04-01 04:36:26.416410682 +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.9.88.orig/arch/arm/mach-versatile/Kconfig linux-4.9.88/arch/arm/mach-versatile/Kconfig
47 --- linux-4.9.88.orig/arch/arm/mach-versatile/Kconfig 2018-03-18 11:18:56.000000000 +0100
48 +++ linux-4.9.88/arch/arm/mach-versatile/Kconfig 2018-04-01 04:37:41.424472952 +0100
51 - bool "ARM Ltd. Versatile family"
52 - depends on ARCH_MULTI_V5
53 + bool "ARM Ltd. Versatile family" if ARCH_MULTI_V5
54 + depends on ARCH_MULTI_V5 || ARM_SINGLE_ARCH_VERSATILE
55 + default y if ARM_SINGLE_ARCH_VERSATILE
57 select ARM_TIMER_SP804
59 diff -Nur linux-4.9.88.orig/arch/arm/mach-versatile/Makefile.boot linux-4.9.88/arch/arm/mach-versatile/Makefile.boot
60 --- linux-4.9.88.orig/arch/arm/mach-versatile/Makefile.boot 1970-01-01 01:00:00.000000000 +0100
61 +++ linux-4.9.88/arch/arm/mach-versatile/Makefile.boot 2018-04-01 04:36:26.417410669 +0100
63 +# Empty file waiting for deletion once Makefile.boot isn't needed any more.
64 +# Patch waits for application at
65 +# http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7889/1 .
66 diff -Nur linux-4.9.88.orig/arch/arm/mach-versatile/versatile_dt.c linux-4.9.88/arch/arm/mach-versatile/versatile_dt.c
67 --- linux-4.9.88.orig/arch/arm/mach-versatile/versatile_dt.c 2018-03-18 11:18:56.000000000 +0100
68 +++ linux-4.9.88/arch/arm/mach-versatile/versatile_dt.c 2018-04-01 04:36:26.417410669 +0100
70 #include <asm/mach/map.h>
72 /* macro to get at MMIO space when running virtually */
74 #define IO_ADDRESS(x) (((x) & 0x0fffffff) + (((x) >> 4) & 0x0f000000) + 0xf0000000)
76 +#define IO_ADDRESS(x) (x)
78 #define __io_address(n) ((void __iomem __force *)IO_ADDRESS(n))