From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 80160C43334 for ; Thu, 30 Jun 2022 08:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3JK8e0LlLjCmFrXI1y4AGR2kf7oQ1vcjGw4lLB+OmeA=; b=ftlNL1tXANLW65 M1k6HU1juRlNpcoQrAF+bkmBdSY1nfkqN9c2DZ9JsTbUf1ifp0gqAbo9Ftbfti1f33cnxq3s0AU8X 34CFc6ZSJJx5uaGprcpLQsXY1OwliAXP1Y8Zc/yuACN6moItiUcWoieyTbVeRidQJJcmvr0wrJcnh CCnGZzVe7eLaif28S5FJmaemIPJAwDO0sXhHPaed8qiygmPJhA4Ny82llFTiw+w7cfKkQF9dP0AUa rvPXLVMtC+7ryEnQt/uerjYEX0uD2yvZFHgplHf7KghbRW/XESn1cRaGrl6pxzm6if8+6aMmMdsFl RvZSOZ9yPeFdZE4IFEgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6pfv-00G3XR-Iu; Thu, 30 Jun 2022 08:37:23 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6pfd-00G3RI-8b for linux-arm-kernel@lists.infradead.org; Thu, 30 Jun 2022 08:37:07 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6EDB81BD0; Thu, 30 Jun 2022 01:37:01 -0700 (PDT) Received: from login2.euhpc.arm.com (login2.euhpc.arm.com [10.6.27.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8993B3F66F; Thu, 30 Jun 2022 01:37:00 -0700 (PDT) From: Vladimir Murzin To: linux-arm-kernel@lists.infradead.org Cc: arnd@arndb.de, ayan.kumar.halder@xilinx.com, stefanos@xilinx.com Subject: [RFC PATCH 2/3] ARM: mps2: Split into ARCH/MACH options Date: Thu, 30 Jun 2022 09:36:40 +0100 Message-Id: <20220630083641.21835-3-vladimir.murzin@arm.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20220630083641.21835-1-vladimir.murzin@arm.com> References: <20220630083641.21835-1-vladimir.murzin@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220630_013705_392000_D9BBF9BB X-CRM114-Status: UNSURE ( 8.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org We are about to add MPS2 compatible R-class platform, so we'd need fine grain control over what should go under M-calss. Signed-off-by: Vladimir Murzin --- arch/arm/Kconfig | 12 ------------ arch/arm/mach-versatile/Kconfig | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0dda6523724d..7fa06db2d9e5 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -631,18 +631,6 @@ config ARCH_LPC18XX Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4 high performance microcontrollers. -config ARCH_MPS2 - bool "ARM MPS2 platform" - depends on ARM_SINGLE_ARMV7M - select ARM_AMBA - select CLKSRC_MPS2 - help - Support for Cortex-M Prototyping System (or V2M-MPS2) which comes - with a range of available cores like Cortex-M3/M4/M7. - - Please, note that depends which Application Note is used memory map - for the platform may vary, so adjustment of RAM base might be needed. - # Definitions to make life easier config ARCH_ACORN bool diff --git a/arch/arm/mach-versatile/Kconfig b/arch/arm/mach-versatile/Kconfig index 2ef226194c3a..18643af4f3e1 100644 --- a/arch/arm/mach-versatile/Kconfig +++ b/arch/arm/mach-versatile/Kconfig @@ -325,3 +325,35 @@ config ARCH_VEXPRESS_TC2_PM with a TC2 (A15x2 A7x3) big.LITTLE core tile. endif + +menuconfig ARCH_MPS2 + bool "ARM MPS2 family" + depends on ARM_SINGLE_ARMV7M + select ARM_AMBA + select CLKSRC_MPS2 + help + Support for Cortex-M Prototyping System (or V2M-MPS2) which comes + with a range of available cores like Cortex-M3/M4/M7. + + Please, note that depends which Application Note is used memory map + for the platform may vary, so adjustment of RAM base might be needed. + +if ARCH_MPS2 + +config MACH_MPS2_AN385 + bool "ARM MPS2 Application Note 385" + default y + +config MACH_MPS2_AN385 + bool "ARM MPS2 Application Note 385" + default y + +config MACH_MPS2_AN399 + bool "ARM MPS2 Application Note 399" + default y + +config MACH_MPS2_AN400 + bool "ARM MPS2 Application Note 400" + default y + +endif # MPS2 -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel