From patchwork Sat Oct 24 16:52:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Christophe PLAGNIOL-VILLARD X-Patchwork-Id: 55730 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9OHI6P1019808 for ; Sat, 24 Oct 2009 17:18:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751657AbZJXRSA (ORCPT ); Sat, 24 Oct 2009 13:18:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751626AbZJXRSA (ORCPT ); Sat, 24 Oct 2009 13:18:00 -0400 Received: from 17.mail-out.ovh.net ([91.121.30.212]:33490 "HELO 17.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751645AbZJXRR7 (ORCPT ); Sat, 24 Oct 2009 13:17:59 -0400 X-Greylist: delayed 399 seconds by postgrey-1.27 at vger.kernel.org; Sat, 24 Oct 2009 13:17:59 EDT Received: (qmail 3802 invoked by uid 503); 24 Oct 2009 17:11:31 -0000 Received: from 2.mail-out.ovh.net (91.121.26.226) by 17.mail-out.ovh.net with SMTP; 24 Oct 2009 17:11:31 -0000 Received: (qmail 13856 invoked by uid 503); 24 Oct 2009 17:43:46 -0000 Received: from b6.ovh.net (HELO mail189.ha.ovh.net) (213.186.33.56) by 2.mail-out.ovh.net with SMTP; 24 Oct 2009 17:43:46 -0000 Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 24 Oct 2009 17:18:22 -0000 Received: from ns32433.ovh.net (HELO localhost) (plagnioj%jcrosoft.com@213.251.161.87) by ns0.ovh.net with SMTP; 24 Oct 2009 17:18:21 -0000 From: Jean-Christophe PLAGNIOL-VILLARD To: linux-sh@vger.kernel.org Cc: Jean-Christophe PLAGNIOL-VILLARD Subject: [PATCH] sh: Use SYS_SUPPORTS_32BIT for managing 32BIT dependencies. Date: Sat, 24 Oct 2009 18:52:11 +0200 Message-Id: <1256403131-20140-1-git-send-email-plagnioj@jcrosoft.com> X-Mailer: git-send-email 1.6.3.1 X-Ovh-Tracer-Id: 3953316049462274834 X-Ovh-Remote: 213.251.161.87 (ns32433.ovh.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.5/N X-Ovh-Tracer-Id: 3837911308161428241 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 0dc7e3c..20a3488 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -121,6 +121,9 @@ config SYS_SUPPORTS_APM_EMULATION bool select ARCH_SUSPEND_POSSIBLE +config SYS_SUPPORTS_32BIT + bool + config SYS_SUPPORTS_SMP bool @@ -402,6 +405,7 @@ config CPU_SUBTYPE_SH7757 bool "Support SH7757 processor" select CPU_SH4A select CPU_SHX2 + select SYS_SUPPORTS_32BIT help Select SH7757 if you have a SH4A SH7757 CPU. @@ -418,12 +422,14 @@ config CPU_SUBTYPE_SH7770 config CPU_SUBTYPE_SH7780 bool "Support SH7780 processor" select CPU_SH4A + select SYS_SUPPORTS_32BIT config CPU_SUBTYPE_SH7785 bool "Support SH7785 processor" select CPU_SH4A select CPU_SHX2 select ARCH_SPARSEMEM_ENABLE + select SYS_SUPPORTS_32BIT select SYS_SUPPORTS_NUMA config CPU_SUBTYPE_SH7786 diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 64dc1ad..64b5d43 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig @@ -82,7 +82,7 @@ config 32BIT config PMB_ENABLE bool "Support 32-bit physical addressing through PMB" - depends on MMU && EXPERIMENTAL && (CPU_SUBTYPE_SH7757 || CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785) + depends on MMU && EXPERIMENTAL && SYS_SUPPORTS_32BIT select 32BIT default y help @@ -97,7 +97,7 @@ choice config PMB bool "PMB" - depends on MMU && EXPERIMENTAL && (CPU_SUBTYPE_SH7757 || CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785) + depends on MMU && EXPERIMENTAL && SYS_SUPPORTS_32BIT select 32BIT help If you say Y here, physical addressing will be extended to @@ -106,9 +106,7 @@ config PMB config PMB_FIXED bool "fixed PMB" - depends on MMU && EXPERIMENTAL && (CPU_SUBTYPE_SH7757 || \ - CPU_SUBTYPE_SH7780 || \ - CPU_SUBTYPE_SH7785) + depends on MMU && EXPERIMENTAL && SYS_SUPPORTS_32BIT select 32BIT help If this option is enabled, fixed PMB mappings are inherited