From patchwork Mon Sep 26 00:52:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Ungerer X-Patchwork-Id: 9350033 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8A9E1607F0 for ; Mon, 26 Sep 2016 00:55:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A44A28C4C for ; Mon, 26 Sep 2016 00:55:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E8BF28CD5; Mon, 26 Sep 2016 00:55:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D841D28C4C for ; Mon, 26 Sep 2016 00:55:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1boKBV-0002Hx-P4; Mon, 26 Sep 2016 00:54:17 +0000 Received: from icp-osb-irony-out6.external.iinet.net.au ([203.59.1.106]) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1boKAa-0001v0-85 for linux-arm-kernel@lists.infradead.org; Mon, 26 Sep 2016 00:53:21 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BDBgClcOhX/zXSMGddHAEFAQsBgzwBAQEBAR6BU6M9AQEBAQEBBpMohBOGHgKBQEwBAgEBAQEBAl4nhGICBHkQGCcSVxmISr4DATCFbYouhRIFmXaPaol7hW6QZ1SDGRyBYiw0h1gBAQE X-IPAS-Result: A2BDBgClcOhX/zXSMGddHAEFAQsBgzwBAQEBAR6BU6M9AQEBAQEBBpMohBOGHgKBQEwBAgEBAQEBAl4nhGICBHkQGCcSVxmISr4DATCFbYouhRIFmXaPaol7hW6QZ1SDGRyBYiw0h1gBAQE X-IronPort-AV: E=Sophos;i="5.30,396,1470672000"; d="scan'208";a="275841702" Received: from unknown (HELO goober.accelecon.com) ([103.48.210.53]) by icp-osb-irony-out6.iinet.net.au with ESMTP; 26 Sep 2016 08:52:36 +0800 From: Greg Ungerer To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/4] arm/versatile: support configuring versatile machine for no-MMU Date: Mon, 26 Sep 2016 10:52:30 +1000 Message-Id: <1474851150-12532-5-git-send-email-gerg@uclinux.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474851150-12532-1-git-send-email-gerg@uclinux.org> References: <1474851150-12532-1-git-send-email-gerg@uclinux.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160925_175320_612919_6CE85A05 X-CRM114-Status: GOOD ( 12.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Ungerer MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Allow the arm versatile machine to be configured for no-MMU operation. The approach taken is similar to the support for no-MMU arm v7 machines. A new define, CONFIG_ARM_SINGLE_ARMV5, is used to enable a class of v5 core based machines that are supported for building with !CONFIG_MMU. Currently only the versatile machine is configured to support this. 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. Signed-off-by: Greg Ungerer --- arch/arm/Kconfig | 10 ++++++++++ arch/arm/Kconfig.debug | 3 ++- arch/arm/mach-versatile/Kconfig | 3 ++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index a9c4e48..f44fe7b 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -353,6 +353,16 @@ config ARM_SINGLE_ARMV7M select SPARSE_IRQ select USE_OF +config ARM_SINGLE_ARMV5 + bool "ARMv5 based platforms (ARM926T)" + depends on !MMU + select AUTO_ZRELADDR + select CLKSRC_OF + select COMMON_CLK + select GENERIC_CLOCKEVENTS + select SPARSE_IRQ + select USE_OF + config ARCH_GEMINI bool "Cortina Systems Gemini" select CLKSRC_MMIO diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index a9693b6..9897348 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -1712,7 +1712,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_ARMV5 default "mach/uncompress.h" config EARLY_PRINTK diff --git a/arch/arm/mach-versatile/Kconfig b/arch/arm/mach-versatile/Kconfig index b0cc262..904a012 100644 --- a/arch/arm/mach-versatile/Kconfig +++ b/arch/arm/mach-versatile/Kconfig @@ -1,6 +1,6 @@ config ARCH_VERSATILE bool "ARM Ltd. Versatile family" - depends on ARCH_MULTI_V5 + depends on ARCH_MULTI_V5 || ARM_SINGLE_ARMV5 select ARM_AMBA select ARM_TIMER_SP804 select ARM_VIC @@ -14,6 +14,7 @@ config ARCH_VERSATILE select POWER_RESET select POWER_RESET_VERSATILE select VERSATILE_FPGA_IRQ + select GPIOLIB help This enables support for ARM Ltd Versatile board.