From patchwork Wed Apr 24 04:20:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 2482221 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id CD0BCDF25A for ; Wed, 24 Apr 2013 04:21:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751116Ab3DXEVL (ORCPT ); Wed, 24 Apr 2013 00:21:11 -0400 Received: from intranet.asianux.com ([58.214.24.6]:29919 "EHLO intranet.asianux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111Ab3DXEVK (ORCPT ); Wed, 24 Apr 2013 00:21:10 -0400 Received: by intranet.asianux.com (Postfix, from userid 103) id D28971840282; Wed, 24 Apr 2013 12:21:09 +0800 (CST) X-Spam-Score: -100.8 X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on intranet.asianux.com X-Spam-Level: X-Spam-Status: No, score=-100.8 required=5.0 tests=AWL,BAYES_00, RATWARE_GECKO_BUILD,UPPERCASE_25_50,USER_IN_WHITELIST autolearn=no version=3.1.9 Received: from [10.1.0.143] (unknown [219.143.36.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by intranet.asianux.com (Postfix) with ESMTP id 66F091840242; Wed, 24 Apr 2013 12:21:09 +0800 (CST) Message-ID: <51775D88.2000406@asianux.com> Date: Wed, 24 Apr 2013 12:20:24 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Russell King - ARM Linux CC: Will Deacon , "dhowells@redhat.com" , "plagnioj@jcrosoft.com" , "kgene.kim@samsung.com" , "linux-samsung-soc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Arnd Bergmann Subject: [PATCH v2] ARM: Kconfig: let ARM9TDMI and ARM7TDMI invisible. References: <51775BB3.6000607@asianux.com> In-Reply-To: <51775BB3.6000607@asianux.com> X-Forwarded-Message-Id: <51775BB3.6000607@asianux.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org If CONFIG_MMU is disabled, it will let ARM9TDMI and ARM7TDMI visible, but in fact, only AT91X40 need ARM7TDMI, so need not let them visible. Signed-off-by: Chen Gang Tested-by: Chen Gang Tested-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-at91/Kconfig.non_dt | 1 + arch/arm/mm/Kconfig | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-at91/Kconfig.non_dt b/arch/arm/mach-at91/Kconfig.non_dt index 6c24985..dc972e1 100644 --- a/arch/arm/mach-at91/Kconfig.non_dt +++ b/arch/arm/mach-at91/Kconfig.non_dt @@ -47,6 +47,7 @@ config ARCH_AT91X40 select ARCH_USES_GETTIMEOFFSET select MULTI_IRQ_HANDLER select SPARSE_IRQ + select CPU_ARM7TDMI endchoice diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 9e8101e..3397d05 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -6,7 +6,7 @@ comment "Processor Type" # ARM7TDMI config CPU_ARM7TDMI - bool "Support ARM7TDMI processor" + bool depends on !MMU select CPU_32v4T select CPU_ABRT_LV4T @@ -56,7 +56,7 @@ config CPU_ARM740T # ARM9TDMI config CPU_ARM9TDMI - bool "Support ARM9TDMI processor" + bool depends on !MMU select CPU_32v4T select CPU_ABRT_NOMMU