All of lore.kernel.org
 help / color / mirror / Atom feed
From: gerg@linux-m68k.org (Greg Ungerer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv4 4/4] ARM: versatile: support configuring versatile machine for no-MMU
Date: Tue, 19 Jun 2018 00:19:05 +1000	[thread overview]
Message-ID: <20180618141905.7789-5-gerg@linux-m68k.org> (raw)
In-Reply-To: <20180618141905.7789-1-gerg@linux-m68k.org>

Allow the arm versatile machine to be configured for no-MMU operation.

Older kernels had the ability to build the versatile machine with the MMU
disabled (!CONFIG_MMU). Recent changes to convert the versatile machine
to device tree lost this ability. (Although older kernels could be built
they did not run due to a bug in the IO_ADDRESS() mapping on this machine).

The motivation for this is that the versatile machine is well supported
in qemu. And this provides an excellent platform for development and
testing no-MMU support on ARM in general.

This patch adds a versatile platform selection in the upper level arm
system type menu - where it appeared in older kernel versions - when
configuring for the no-MMU case. There is no visible change to the way
versatile is selected for the MMU enabled case.

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
---
 arch/arm/Kconfig                | 11 +++++++++++
 arch/arm/Kconfig.debug          |  3 ++-
 arch/arm/mach-versatile/Kconfig |  5 +++--
 3 files changed, 16 insertions(+), 3 deletions(-)

v2: don't use a multiplatform setup, move versatile choice to top level menu
v3: rebase on top of linux-4.10
v3: rebase on top of linux-4.17

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 54eeb8d00bc6..0608a6a32fac 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -356,6 +356,17 @@ config ARM_SINGLE_ARMV7M
 	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
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 693f84392f1b..242a0f744c8a 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -1836,7 +1836,8 @@ config DEBUG_UNCOMPRESS
 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
diff --git a/arch/arm/mach-versatile/Kconfig b/arch/arm/mach-versatile/Kconfig
index f5c275434d6c..06ad999d5978 100644
--- a/arch/arm/mach-versatile/Kconfig
+++ b/arch/arm/mach-versatile/Kconfig
@@ -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
-- 
2.17.1

  parent reply	other threads:[~2018-06-18 14:19 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-18 14:19 [PATCHv4 0/4] arm/versatile: no-MMU support Greg Ungerer
2018-06-18 14:19 ` [PATCHv4 1/4] ARM: versatile: support no-MMU mode addressing Greg Ungerer
2018-06-18 14:19 ` [PATCHv4 2/4] ARM: versatile: define empty debug_ll_io_init() for no-MMU Greg Ungerer
2018-06-18 14:19 ` [PATCHv4 3/4] ARM: versatile: empty Makefile.boot needed for no-MMU compile Greg Ungerer
2018-06-18 14:19 ` Greg Ungerer [this message]
2018-06-21 15:59   ` [PATCHv4 4/4] ARM: versatile: support configuring versatile machine for no-MMU Geert Uytterhoeven
2018-06-21 16:24     ` Nicolas Pitre
2018-06-21 16:24       ` Nicolas Pitre
2018-06-21 16:45       ` Chris Brandt
2018-06-21 16:45         ` Chris Brandt
2018-06-22  6:27         ` Geert Uytterhoeven
2018-06-22  6:27           ` Geert Uytterhoeven
2018-06-22 13:26           ` Chris Brandt
2018-06-22 13:26             ` Chris Brandt
2018-06-22 11:01       ` Russell King - ARM Linux
2018-06-22 11:01         ` Russell King - ARM Linux
2018-06-22 15:25         ` Nicolas Pitre
2018-06-22 15:25           ` Nicolas Pitre
2018-06-22 15:33           ` Geert Uytterhoeven
2018-06-22 15:33             ` Geert Uytterhoeven
2018-06-22 15:57             ` Nicolas Pitre
2018-06-22 15:57               ` Nicolas Pitre
2018-06-22 16:11               ` Russell King - ARM Linux
2018-06-22 16:11                 ` Russell King - ARM Linux
2018-06-22 16:21                 ` Nicolas Pitre
2018-06-22 16:21                   ` Nicolas Pitre
2018-06-22 16:40                   ` Russell King - ARM Linux
2018-06-22 16:40                     ` Russell King - ARM Linux
2018-06-22 16:54                     ` Nicolas Pitre
2018-06-22 16:54                       ` Nicolas Pitre
2018-06-22 17:09                       ` Russell King - ARM Linux
2018-06-22 17:09                         ` Russell King - ARM Linux
2018-06-22 17:25                         ` Nicolas Pitre
2018-06-22 17:25                           ` Nicolas Pitre
2018-06-22 16:40                 ` Chris Brandt
2018-06-22 16:40                   ` Chris Brandt
2018-06-22 16:44               ` Chris Brandt
2018-06-22 16:44                 ` Chris Brandt
2018-06-22 17:05                 ` Nicolas Pitre
2018-06-22 17:05                   ` Nicolas Pitre
2018-06-22 17:23                   ` Chris Brandt
2018-06-22 17:23                     ` Chris Brandt
2018-06-22 17:47                     ` Nicolas Pitre
2018-06-22 17:47                       ` Nicolas Pitre
2018-06-22 18:38                     ` Russell King - ARM Linux
2018-06-22 18:38                       ` Russell King - ARM Linux
2018-06-22 20:25                       ` Chris Brandt
2018-06-22 20:25                         ` Chris Brandt
2018-06-22 20:28                         ` Geert Uytterhoeven
2018-06-22 20:28                           ` Geert Uytterhoeven
2018-06-22 20:33                         ` Russell King - ARM Linux
2018-06-22 20:33                           ` Russell King - ARM Linux
2018-06-22  0:58     ` Greg Ungerer
2018-06-22  9:26     ` Russell King - ARM Linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180618141905.7789-5-gerg@linux-m68k.org \
    --to=gerg@linux-m68k.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.