Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1464562ybg; Thu, 11 Jun 2020 10:28:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqFrmrXA4jGEE16BuZN13t1s/3jK/gJsb8QXKNcK2bqNYc0lUieKVa/gHU+6X+aah+yufM X-Received: by 2002:a17:906:af4d:: with SMTP id ly13mr8924786ejb.250.1591896529791; Thu, 11 Jun 2020 10:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591896529; cv=none; d=google.com; s=arc-20160816; b=yUiHXZjX+4BIU6AJa16of7kYcDO2jGxXXsIYhWM0QmiDUt9jv9rXlAKBK+rbNaaUaO mhbdbt+qtu/NMVHhrrEoqlgVY35XrOL1QqJI2Oltv5vc24CkIyDvpU8Vn2bABkruElTV 7K6wIbxwomeK+WQgd20GhP0L08pYGXtmV6QlCdUT0WSLaX/g54RUfaay8U9cUU7SulJs SgxBUrniWDCsBuiGQ0QbvFjpqKA0OJGmSfPagDb9pCkMqM2ryWR6XiPGu42kEfNJiBdW OeS3HT1tATr62NZcJlxLHRhWCft/nio/tuWLXRjNCuAMNdeD/4lgNjAkszg/bwgFz2X2 CULg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=16Pj9dojfm3Nh3hcgVoLIgeh79BS68UXxtC70IPpewQ=; b=krZwGgjH5a9iiDwxow8zMcfFbmm8tu4PZ7AiVC0KSVSy/1N/UIXdX70kvEmmcfnjPK gspRp1F8hNzjTTaBz8hohb17nwyq3oTQSiQsatbzl30L4LKLgc9YwTxuo7/LHWHtMXTq lrnrV4bgIkRth3sy01lumU/NeYNyegSR97IFymsPs2g9s9rhI/en+InymWK0agWlEfrA Q1hhsDEiL3GnuSzlpcaQYRXgdaalptQYG6FR5JmL7eqL/GG6fXvCdlUW4Sh4mvc88mBq 7wzGo3PYBntSlYTu+yuHhawUUd5PEiUZHlZXo8Zvp8rquc/pwFN3YuB2z+1v6Nsz9H2H QcFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si2236021ejo.692.2020.06.11.10.28.26; Thu, 11 Jun 2020 10:28:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728048AbgFKM6z (ORCPT + 99 others); Thu, 11 Jun 2020 08:58:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:54212 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbgFKM6z (ORCPT ); Thu, 11 Jun 2020 08:58:55 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C0874AF32; Thu, 11 Jun 2020 12:58:55 +0000 (UTC) Subject: Re: [PATCH v2 2/5] ARM: mstar: Add machine for MStar/Sigmastar infinity/mercury family ARMv7 SoCs To: Daniel Palmer Cc: k@japko.eu, tim.bird@sony.com, devicetree@vger.kernel.org, Daniel Palmer , Rob Herring , Russell King , Sam Ravnborg , Linus Walleij , Heiko Stuebner , Maxime Ripard , Lubomir Rintel , Stephan Gerhold , Mark Brown , allen , Mauro Carvalho Chehab , "David S. Miller" , Jonathan Corbet , Greg Kroah-Hartman , Arnd Bergmann , Mike Rapoport , Andrew Morton , Doug Anderson , Benjamin Gaignard , Gregory Fong , Bartosz Golaszewski , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Christian Lamparter , Nathan Huckleberry , Ard Biesheuvel , Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20191014061617.10296-2-daniel@0x0f.com> <20200610090421.3428945-3-daniel@0x0f.com> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Organization: SUSE Software Solutions Germany GmbH Message-ID: Date: Thu, 11 Jun 2020 14:58:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200610090421.3428945-3-daniel@0x0f.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 10.06.20 um 11:04 schrieb Daniel Palmer: > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 59fde2d598d8..e7f4ca060c0f 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -197,6 +197,7 @@ machine-$(CONFIG_ARCH_MXC) += imx > machine-$(CONFIG_ARCH_MEDIATEK) += mediatek > machine-$(CONFIG_ARCH_MILBEAUT) += milbeaut > machine-$(CONFIG_ARCH_MXS) += mxs > +machine-$(CONFIG_ARCH_MSTARV7) += mstar > machine-$(CONFIG_ARCH_NOMADIK) += nomadik > machine-$(CONFIG_ARCH_NPCM) += npcm > machine-$(CONFIG_ARCH_NSPIRE) += nspire > diff --git a/arch/arm/mach-mstar/Kconfig b/arch/arm/mach-mstar/Kconfig > new file mode 100644 > index 000000000000..6235d0a7860a > --- /dev/null > +++ b/arch/arm/mach-mstar/Kconfig > @@ -0,0 +1,26 @@ > +menuconfig ARCH_MSTARV7 You call the dir mach-mstar, but name the Kconfig ARCH_MSTARV7. I had previously been asked to just use the vendor name, so this should probably be just ARCH_MSTAR. Outside arch/arm/ you can then use ARM && ARCH_MSTAR condition to make things 32-bit only, allowing to reuse ARCH_MSTAR for arm64 or whatever. > + bool "MStar/Sigmastar ARMv7 SoC Support" > + depends on ARCH_MULTI_V7 > + select ARM_GIC > + select ARM_HEAVY_MB > + help > + Support for newer MStar/Sigmastar SoC families that are > + based on ARMv7 cores like the Cortex A7 and share the same > + basic hardware like the infinity and mercury series. > + > +if ARCH_MSTARV7 > + > +config MACH_INFINITY > + bool "MStar/Sigmastar infinity SoC support" > + default ARCH_MSTARV7 > + help > + Support for MStar/Sigmastar infinity IP camera SoCs. > + > +config MACH_MERCURY > + bool "MStar/Sigmastar mercury SoC support" > + default ARCH_MSTARV7 > + help > + Support for MStar/Sigmastar mercury dash camera SoCs. > + Note that older Mercury2 SoCs are ARM9 based and not supported. Is this comment really helpful? This menu item would only seem to come up after having selected multi_v7, which kind of rules out ARM9. Consider adding mercury in a second step? > + > +endif Regards, Andreas -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)