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 67CA7CCA479 for ; Fri, 1 Jul 2022 09:23:47 +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:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gF36/4S93hycbqWsjX9FyQTlCkxz2FD4or2zg6b26dk=; b=c0Cr7QKBy9CiWo HfE3lNTdNJE5ffAzbB3wTOhGk45EbY/eJE4uUFg7qLDhkmmaYcPmGfc7hrbK9Cvly7fu+Le634KBf pLcAFhHXA1qVjOosznVFp6qxd9w7mLFuuoTnryd+rWfcsmT5is40f9+dfAfJQoq8M3F6hXy7hHne1 SD0vpeI+Z+IjrxaRB46Vzctxa3TybSj66eB+OU/ybJZwMfIchYcBHuCjPnFg9Ea9ATNVMXUa0iWRJ GyZKONpVOeHjivPbkvgpmYPE7twVCl48iWBO8JYES6vrRzhDrQQMiJ4CE814IkRHcDJtsdXFozAiV ZNiEcXo6FBrJMSVWchuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7Cr8-003qN7-Bh; Fri, 01 Jul 2022 09:22:30 +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 1o7Cr4-003qLg-7K for linux-arm-kernel@lists.infradead.org; Fri, 01 Jul 2022 09:22:28 +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 453B21063; Fri, 1 Jul 2022 02:22:22 -0700 (PDT) Received: from [10.57.10.28] (unknown [10.57.10.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EDD313F66F; Fri, 1 Jul 2022 02:22:20 -0700 (PDT) Message-ID: <1fefdc0e-73c0-b6c9-83bf-2df9495d2f55@arm.com> Date: Fri, 1 Jul 2022 10:22:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [RFC PATCH 1/3] ARM: Introduce ARM_SINGLE_ARMV7R for ARMv7-R platforms Content-Language: en-US To: Arnd Bergmann Cc: Linux ARM , Ayan Kumar Halder , Stefano Stabellini References: <20220630083641.21835-1-vladimir.murzin@arm.com> <20220630083641.21835-2-vladimir.murzin@arm.com> From: Vladimir Murzin In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220701_022226_338903_6532B029 X-CRM114-Status: GOOD ( 16.41 ) 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 On 6/30/22 10:22, Arnd Bergmann wrote: > On Thu, Jun 30, 2022 at 10:36 AM Vladimir Murzin > wrote: >> config ARM_SINGLE_ARMV7M >> - def_bool !MMU >> + bool "ARM Cortex-M based platforms" >> select ARM_NVIC >> select AUTO_ZRELADDR >> select TIMER_OF >> @@ -315,6 +320,18 @@ config ARM_SINGLE_ARMV7M >> select SPARSE_IRQ >> select USE_OF >> >> +config ARM_SINGLE_ARMV7R >> + bool "ARM Cortex-R based platforms" >> + select AUTO_ZRELADDR >> + select TIMER_OF >> + select COMMON_CLK >> + select CPU_V7 >> + select NO_IOPORT_MAP >> + select SPARSE_IRQ >> + select USE_OF >> + > > I was actually hoping to eventually kill off the > ARM_SINGLE_ARMV7M and ARCH_MULTIPLATFORM symbols > and just select the other symbols from CONFIG_ARM directly, like > > select SPARSE_IRQ if !ARCH_RPC > select TIMER_OF if OF > select USE_OF if !(CPU_SA110 || CPU_SA1100) > select COMMON_CLK if !(ARCH_FOOTBRIDGE || ARCH_RPC) > ... > > That can of course be done independently from your series, but > it looks like ARM_SINGLE_ARMV7M and ARM_SINGLE_ARMV7R > are mostly the same here, except for the ARM_NVIC selects that > could be done by the platforms, and the CPU_V7/CPU_V7M > difference that could be folded into the CPU selection menu. > That sounds interesting! Moving NVIC into platforms looks straightforward, yet CPU selection would require some surgery: - CPU_V7/CPU_V7M are not user selectable at the moment - We still need some hint from the platform if it supports more than one CPU variant, no? Cheers Vladimir > Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel