2021-01-20 20:59:53 +01:00
|
|
|
From 525dd2f3cf4a94837ce6b71d793acb90c25a5654 Mon Sep 17 00:00:00 2001
|
2019-02-12 23:24:13 +01:00
|
|
|
From: Waldemar Brodkorb <wbx@openadk.org>
|
|
|
|
Date: Fri, 1 Feb 2019 11:36:20 +0100
|
|
|
|
Subject: [PATCH] arm-versatile-nommu: Linux patch
|
|
|
|
|
|
|
|
Originally made by Waldemar Brodkorb <wbx@openadk.org> from LKML.
|
|
|
|
|
2018-06-02 22:07:20 +02:00
|
|
|
Signed-Off-by: Waldemar Brodkorb <wbx@openadk.org>
|
2019-02-12 23:24:13 +01:00
|
|
|
[Gerome: reformated as a Git patch]
|
|
|
|
Signed-off-by: Gerome Burlats <gerome.burlats@smile.fr>
|
|
|
|
[Romain: fix Waldemar's authorship in Git patch]
|
|
|
|
Signed-off-by: Romain Naour <romain.naour@smile.fr>
|
|
|
|
---
|
|
|
|
arch/arm/Kconfig | 11 +++++++++++
|
|
|
|
arch/arm/Kconfig.debug | 3 ++-
|
|
|
|
arch/arm/include/asm/mach/map.h | 1 +
|
|
|
|
arch/arm/mach-versatile/Kconfig | 5 +++--
|
|
|
|
arch/arm/mach-versatile/Makefile.boot | 3 +++
|
|
|
|
arch/arm/mach-versatile/versatile_dt.c | 4 ++++
|
|
|
|
6 files changed, 24 insertions(+), 3 deletions(-)
|
|
|
|
create mode 100644 arch/arm/mach-versatile/Makefile.boot
|
2016-09-29 12:55:20 +02:00
|
|
|
|
2019-02-12 23:24:13 +01:00
|
|
|
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
|
2021-01-20 20:59:53 +01:00
|
|
|
index 002e0cf025f5..c71299b6f91f 100644
|
2019-02-12 23:24:13 +01:00
|
|
|
--- a/arch/arm/Kconfig
|
|
|
|
+++ b/arch/arm/Kconfig
|
2021-01-20 20:59:53 +01:00
|
|
|
@@ -343,6 +343,17 @@ config ARM_SINGLE_ARMV7M
|
2018-06-02 22:07:20 +02:00
|
|
|
select SPARSE_IRQ
|
|
|
|
select USE_OF
|
|
|
|
|
|
|
|
+config ARM_SINGLE_ARCH_VERSATILE
|
|
|
|
+ bool "ARM Ltd. Versatile family"
|
|
|
|
+ depends on !MMU
|
|
|
|
+ select AUTO_ZRELADDR
|
|
|
|
+ select CLKSRC_OF
|
|
|
|
+ select COMMON_CLK
|
|
|
|
+ select GENERIC_CLOCKEVENTS
|
|
|
|
+ select GPIOLIB
|
|
|
|
+ select SPARSE_IRQ
|
|
|
|
+ select USE_OF
|
|
|
|
+
|
|
|
|
config ARCH_EBSA110
|
|
|
|
bool "EBSA-110"
|
|
|
|
select ARCH_USES_GETTIMEOFFSET
|
2019-02-12 23:24:13 +01:00
|
|
|
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
|
2021-01-20 20:59:53 +01:00
|
|
|
index 8986a91a6f31..69cb6404e8ce 100644
|
2019-02-12 23:24:13 +01:00
|
|
|
--- a/arch/arm/Kconfig.debug
|
|
|
|
+++ b/arch/arm/Kconfig.debug
|
2021-01-20 20:59:53 +01:00
|
|
|
@@ -1943,7 +1943,8 @@ config DEBUG_UNCOMPRESS
|
2018-06-02 22:07:20 +02:00
|
|
|
config UNCOMPRESS_INCLUDE
|
|
|
|
string
|
|
|
|
default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM || \
|
|
|
|
- PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
|
|
|
|
+ PLAT_SAMSUNG || ARM_SINGLE_ARMV7M || \
|
|
|
|
+ ARM_SINGLE_ARCH_VERSATILE
|
|
|
|
default "mach/uncompress.h"
|
|
|
|
|
|
|
|
config EARLY_PRINTK
|
2019-02-12 23:24:13 +01:00
|
|
|
diff --git a/arch/arm/include/asm/mach/map.h b/arch/arm/include/asm/mach/map.h
|
2021-01-20 20:59:53 +01:00
|
|
|
index 92282558caf7..90bd9c069ffc 100644
|
2019-02-12 23:24:13 +01:00
|
|
|
--- a/arch/arm/include/asm/mach/map.h
|
|
|
|
+++ b/arch/arm/include/asm/mach/map.h
|
2021-01-20 20:59:53 +01:00
|
|
|
@@ -59,6 +59,7 @@ extern int ioremap_page(unsigned long virt, unsigned long phys,
|
2018-06-02 22:07:20 +02:00
|
|
|
#else
|
|
|
|
#define iotable_init(map,num) do { } while (0)
|
|
|
|
#define vm_reserve_area_early(a,s,c) do { } while (0)
|
|
|
|
+#define debug_ll_io_init() do { } while (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
2019-02-12 23:24:13 +01:00
|
|
|
diff --git a/arch/arm/mach-versatile/Kconfig b/arch/arm/mach-versatile/Kconfig
|
2021-01-20 20:59:53 +01:00
|
|
|
index d88e7725bf99..d38b90157f13 100644
|
2019-02-12 23:24:13 +01:00
|
|
|
--- a/arch/arm/mach-versatile/Kconfig
|
|
|
|
+++ b/arch/arm/mach-versatile/Kconfig
|
2018-06-02 22:07:20 +02:00
|
|
|
@@ -1,7 +1,8 @@
|
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
config ARCH_VERSATILE
|
|
|
|
- bool "ARM Ltd. Versatile family"
|
|
|
|
- depends on ARCH_MULTI_V5
|
|
|
|
+ bool "ARM Ltd. Versatile family" if ARCH_MULTI_V5
|
|
|
|
+ depends on ARCH_MULTI_V5 || ARM_SINGLE_ARCH_VERSATILE
|
|
|
|
+ default y if ARM_SINGLE_ARCH_VERSATILE
|
|
|
|
select ARM_AMBA
|
|
|
|
select ARM_TIMER_SP804
|
|
|
|
select ARM_VIC
|
2019-02-12 23:24:13 +01:00
|
|
|
diff --git a/arch/arm/mach-versatile/Makefile.boot b/arch/arm/mach-versatile/Makefile.boot
|
|
|
|
new file mode 100644
|
|
|
|
index 000000000000..eacfc3f5c33e
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/arch/arm/mach-versatile/Makefile.boot
|
2018-06-02 22:07:20 +02:00
|
|
|
@@ -0,0 +1,3 @@
|
|
|
|
+# Empty file waiting for deletion once Makefile.boot isn't needed any more.
|
|
|
|
+# Patch waits for application at
|
|
|
|
+# http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7889/1 .
|
2019-02-12 23:24:13 +01:00
|
|
|
diff --git a/arch/arm/mach-versatile/versatile_dt.c b/arch/arm/mach-versatile/versatile_dt.c
|
2021-01-20 20:59:53 +01:00
|
|
|
index 02ba68abe533..835b51bc597b 100644
|
2019-02-12 23:24:13 +01:00
|
|
|
--- a/arch/arm/mach-versatile/versatile_dt.c
|
|
|
|
+++ b/arch/arm/mach-versatile/versatile_dt.c
|
2021-01-20 20:59:53 +01:00
|
|
|
@@ -22,7 +22,11 @@
|
2018-06-02 22:07:20 +02:00
|
|
|
#include <asm/mach/map.h>
|
2016-09-29 12:55:20 +02:00
|
|
|
|
|
|
|
/* macro to get at MMIO space when running virtually */
|
2018-06-02 22:07:20 +02:00
|
|
|
+#ifdef CONFIG_MMU
|
2016-09-29 12:55:20 +02:00
|
|
|
#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))
|
|
|
|
|
2018-06-02 22:07:20 +02:00
|
|
|
/*
|
2019-02-12 23:24:13 +01:00
|
|
|
--
|
2021-01-20 20:59:53 +01:00
|
|
|
2.17.1
|
2019-02-12 23:24:13 +01:00
|
|
|
|