1 diff -Nur linux-5.4.155.orig/arch/arm/include/asm/mach/map.h linux-5.4.155/arch/arm/include/asm/mach/map.h
2 --- linux-5.4.155.orig/arch/arm/include/asm/mach/map.h 2021-10-20 11:40:18.000000000 +0200
3 +++ linux-5.4.155/arch/arm/include/asm/mach/map.h 2021-10-26 11:20:50.164712192 +0200
6 #define iotable_init(map,num) do { } while (0)
7 #define vm_reserve_area_early(a,s,c) do { } while (0)
8 +#define debug_ll_io_init() do { } while (0)
12 diff -Nur linux-5.4.155.orig/arch/arm/Kconfig linux-5.4.155/arch/arm/Kconfig
13 --- linux-5.4.155.orig/arch/arm/Kconfig 2021-10-20 11:40:18.000000000 +0200
14 +++ linux-5.4.155/arch/arm/Kconfig 2021-10-26 11:20:50.164712192 +0200
19 +config ARM_SINGLE_ARCH_VERSATILE
20 + bool "ARM Ltd. Versatile family"
22 + select AUTO_ZRELADDR
25 + select GENERIC_CLOCKEVENTS
32 select ARCH_USES_GETTIMEOFFSET
33 diff -Nur linux-5.4.155.orig/arch/arm/Kconfig.debug linux-5.4.155/arch/arm/Kconfig.debug
34 --- linux-5.4.155.orig/arch/arm/Kconfig.debug 2021-10-20 11:40:18.000000000 +0200
35 +++ linux-5.4.155/arch/arm/Kconfig.debug 2021-10-26 11:20:50.168712192 +0200
37 config UNCOMPRESS_INCLUDE
39 default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM || \
40 - PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
41 + PLAT_SAMSUNG || ARM_SINGLE_ARMV7M || \
42 + ARM_SINGLE_ARCH_VERSATILE
43 default "mach/uncompress.h"
46 diff -Nur linux-5.4.155.orig/arch/arm/mach-versatile/Kconfig linux-5.4.155/arch/arm/mach-versatile/Kconfig
47 --- linux-5.4.155.orig/arch/arm/mach-versatile/Kconfig 2021-10-20 11:40:18.000000000 +0200
48 +++ linux-5.4.155/arch/arm/mach-versatile/Kconfig 2021-10-26 11:20:50.168712192 +0200
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-5.4.155.orig/arch/arm/mach-versatile/Makefile.boot linux-5.4.155/arch/arm/mach-versatile/Makefile.boot
61 --- linux-5.4.155.orig/arch/arm/mach-versatile/Makefile.boot 1970-01-01 01:00:00.000000000 +0100
62 +++ linux-5.4.155/arch/arm/mach-versatile/Makefile.boot 2021-10-26 11:20:50.168712192 +0200
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-5.4.155.orig/arch/arm/mach-versatile/versatile_dt.c linux-5.4.155/arch/arm/mach-versatile/versatile_dt.c
68 --- linux-5.4.155.orig/arch/arm/mach-versatile/versatile_dt.c 2021-10-20 11:40:18.000000000 +0200
69 +++ linux-5.4.155/arch/arm/mach-versatile/versatile_dt.c 2021-10-26 11:20:50.168712192 +0200
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))