Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756774AbbLDVy5 (ORCPT ); Fri, 4 Dec 2015 16:54:57 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:63291 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754867AbbLDVyz (ORCPT ); Fri, 4 Dec 2015 16:54:55 -0500 From: Arnd Bergmann To: xuejiancheng Cc: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, khilman@linaro.org, olof@lixom.net, xuwei5@hisilicon.com, haojian.zhuang@linaro.org, zhangfei.gao@linaro.org, bintian.wang@huawei.com, suwenping@hisilicon.com, linux-kernel@vger.kernel.org, yanhaifeng@hisilicon.com, gaofei@hisilicon.com, ml.yang@hisilicon.com, yanghongwei@hisilicon.com Subject: Re: [PATCH v2 3/9] ARM: hisi: enable Hi3519 soc Date: Fri, 04 Dec 2015 22:54:07 +0100 Message-ID: <43938749.Z0h4RNddN6@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <5661119E.9060309@huawei.com> References: <1449110565-23590-1-git-send-email-xuejiancheng@huawei.com> <8647404.sBOFNLAMdU@wuerfel> <5661119E.9060309@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:PpL1EB1B+NOUgIPR//DKeNGdCBBhm2TO4eEFvIQErhZ8sXIUH+C jaNkwcJcnqT3wC/pyn86F8Mu3kHyx76u8XbMDnpX4niy6GOgl2yZGMsu7BHPjkp9McqL8fq FjTuBW6vLqKnjd0NPh6IxVYadXn6//b0Zq3iDvSt5/+D/kcxl7MRGxtDHhacitzcHuAnbCF l37i6MFnKRp4+rcr2BurQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:b55kLKm4vbI=:wI0oEMwP3p5JyFYt3Q3tBN LqG8B7e55qRe9jVe/nWehM8jZ0PVCPkIDolvcbXJfL24WVpkkCLkctZb8cGoKXIuHemmTDZu3 4FXbaVFRrjpqMeIKKfw3UFlDMHljAX0id/Mhsi4JRmOPpP0P6jQBCyWvHQtVz0Fv+5bfaqyk3 ufyRbMf/RtjPq1aJ5N04q4Y36dqgXK2FBZsxMIHA0blEd/I95ssqtrZXQ5UKJz1GvPfR2bMEo S9ATIsNy+Q+Q6tWElCofwjnxuQZSgJxQRJtf9Hdr721bqbMbG/65QfvSkIrdlL4TAGxbJhgFs XsdY5a5JvRADpIEFx7byhwDR7OxEEhPb4s/VekPoDZiv1jbT1pJPSprRn/n1YiYriyZasafAR s7Aviiyk+5mn3MFvcrt01ruLlYs0DjscWlSJvtMzE6zhNnyfZKJgd9IrkTAx8li7zrb0T4GYB Jp7ubjCO4q9zGsPk2Bc36YMPfUA3CUcX8PQiMdMfjKVkoXiNfIXjJF6Ju++iROG4m0vbqNbYs F5qAwLXD9lM0GSLkH7JQqiPvp7FUjZmd7z8OflV5ZZ70G937zmUxwpq6zp8n0WPXwe7LM5P69 UrddXYs0W/0Dbl4tUnL2Ous7BHpPx7ihbmmJGdPS9wfXkDTVDV5sHnRtkFMOIJLL3QqIw2Yf5 LWWQ1bM8BDhUXQ1vkEX33KpUIyVtrCJA/6hUPL+dBX4xIf2UBVpzlKbK9x6d4THS1/KJb97xe JxWPdX+twllaa7ui Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2267 Lines: 52 On Friday 04 December 2015 12:07:58 xuejiancheng wrote: > On 2015/12/3 17:40, Arnd Bergmann wrote: > > On Thursday 03 December 2015 10:42:45 Jiancheng Xue wrote: > >> --- a/arch/arm/mach-hisi/Kconfig > >> +++ b/arch/arm/mach-hisi/Kconfig > >> @@ -12,6 +12,14 @@ if ARCH_HISI > >> > >> menu "Hisilicon platform type" > >> > >> +config ARCH_HI3519 > >> + bool "Hisilicon Hi3519 Soc" if ARCH_MULTI_V7 > >> + select HAVE_ARM_ARCH_TIMER > >> + select ARCH_HAS_RESET_CONTROLLER > >> + > >> + help > >> + Support for Hisilicon Hi3519 Soc > >> + > >> config ARCH_HI3xxx > >> bool "Hisilicon Hi36xx family" if ARCH_MULTI_V7 > >> select CACHE_L2X0 > > > > Do those need to be separate? I would just extend the Hi36xx > > to cover all Hi3xxx, if nothing in the platform code really > > depends on this. > > For HI3519, there is really no special platform code. But HI35xx and HI36xx soc families > belong to different product lines in hisilicon. HI35xx family also composes of various > architectures socs(single core, smp and big-little). So I think it may be clear to have > separate arch definitions. > > Could you give me more suggestions about this? Thank you! For the most part, you already need to enable the device drivers for the specific components on each chip, and the per-soc top-level options here don't actually control the compilation of any particular code. This is slightly different for some of the older platforms that for historic reasons need fine-grained options. You could probably just make the device drivers depend on "ARCH_HISI || COMPILE_TEST" in general, but some level of classification is ok, in particular when the chips are not related at all. In this case, my impression is that while HI3519 and HI36xx are made by different business units, there is still a noticeable amount of shared IP in them (e.g. the "sysctrl" node that seems to be shared with some of the other chips as well), so grouping them together should make sense. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/