From patchwork Sun Sep 20 07:46:39 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pais, Allen" X-Patchwork-Id: 48890 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 n8K7mLZA002863 for ; Sun, 20 Sep 2009 07:48:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753963AbZITHrx (ORCPT ); Sun, 20 Sep 2009 03:47:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753968AbZITHrx (ORCPT ); Sun, 20 Sep 2009 03:47:53 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:47538 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753938AbZITHru convert rfc822-to-8bit (ORCPT ); Sun, 20 Sep 2009 03:47:50 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id n8K7lqMt018226 for ; Sun, 20 Sep 2009 02:47:53 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id n8K7lpQl000941 for ; Sun, 20 Sep 2009 13:17:52 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Sun, 20 Sep 2009 13:17:51 +0530 From: "Pais, Allen" To: "linux-omap@vger.kernel.org" , "Raju, Veeramanikandan" , "Bongale, Hariprasad" Date: Sun, 20 Sep 2009 13:16:39 +0530 Subject: [PATCH][RFC] OMAP3630: Create architecture macros and config entries. Thread-Topic: [PATCH][RFC] OMAP3630: Create architecture macros and config entries. Thread-Index: AQHKOcZ9p0EwAAb5UUCvCmXAPCNSVw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org This patch creates the architectural macros for OMAP3630. Signed-off-by: Allen Pais arch/arm/mach-omap2/Kconfig | 13 ++ arch/arm/plat-omap/include/mach/cpu.h | 30 +++++- --- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 75b1c7e..618b7d5 100755 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -19,11 +19,20 @@ config ARCH_OMAP34XX bool "OMAP34xx Based System" depends on ARCH_OMAP3 +config ARCH_OMAP36XX + bool "OMAP36xx Based System" + depends on ARCH_OMAP3 + config ARCH_OMAP3430 bool "OMAP3430 support" depends on ARCH_OMAP3 && ARCH_OMAP34XX select ARCH_OMAP_OTG +config ARCH_OMAP3630 + bool "OMAP3630 support" + depends on ARCH_OMAP3 && ARCH_OMAP34XX && ARCH_OMAP36XX + select ARCH_OMAP_OTG + comment "OMAP Board Type" depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP4 @@ -73,6 +82,10 @@ config MACH_OMAP_3430SDP bool "OMAP 3430 SDP board" depends on ARCH_OMAP3 && ARCH_OMAP34XX +config MACH_OMAP_3630SDP + bool "OMAP 3630 SDP board" + depends on ARCH_OMAP3 && ARCH_OMAP34XX & ARCH_OMAP36XX + config MACH_NOKIA_N8X0 bool "Nokia N800/N810" depends on ARCH_OMAP2420 diff --git a/arch/arm/plat-omap/include/mach/cpu.h b/arch/arm/plat-omap/include/mach/cpu.h index 7a5f9e8..73c656c 100755 --- a/arch/arm/plat-omap/include/mach/cpu.h +++ b/arch/arm/plat-omap/include/mach/cpu.h @@ -157,10 +157,12 @@ IS_OMAP_CLASS(15xx, 0x15) IS_OMAP_CLASS(16xx, 0x16) IS_OMAP_CLASS(24xx, 0x24) IS_OMAP_CLASS(34xx, 0x34) +IS_OMAP_CLASS(36xx, 0x36) IS_OMAP_SUBCLASS(242x, 0x242) IS_OMAP_SUBCLASS(243x, 0x243) IS_OMAP_SUBCLASS(343x, 0x343) +IS_OMAP_SUBCLASS(363x, 0x363) #define cpu_is_omap7xx() 0 #define cpu_is_omap15xx() 0 @@ -170,6 +172,8 @@ IS_OMAP_SUBCLASS(343x, 0x343) #define cpu_is_omap243x() 0 #define cpu_is_omap34xx() 0 #define cpu_is_omap343x() 0 +#define cpu_is_omap36xx() 0 +#define cpu_is_omap363x() 0 #define cpu_is_omap44xx() 0 #define cpu_is_omap443x() 0 @@ -245,6 +249,14 @@ IS_OMAP_SUBCLASS(343x, 0x343) # undef cpu_is_omap343x # define cpu_is_omap343x() 1 # endif +# if defined(CONFIG_ARCH_OMAP36XX) +# undef cpu_is_omap36xx +# define cpu_is_omap36xx() 1 +# endif +# if defined(CONFIG_ARCH_OMAP3630) +# undef cpu_is_omap363x +# define cpu_is_omap363x() 1 +# endif #endif /* @@ -287,6 +299,7 @@ IS_OMAP_TYPE(2422, 0x2422) IS_OMAP_TYPE(2423, 0x2423) IS_OMAP_TYPE(2430, 0x2430) IS_OMAP_TYPE(3430, 0x3430) +IS_OMAP_TYPE(3630, 0x3630) #define cpu_is_omap310() 0 #define cpu_is_omap730() 0 @@ -302,6 +315,7 @@ IS_OMAP_TYPE(3430, 0x3430) #define cpu_is_omap2423() 0 #define cpu_is_omap2430() 0 #define cpu_is_omap3430() 0 +#define cpu_is_omap3630() 0 /* * Whether we have MULTI_OMAP1 or not, we still need to distinguish @@ -354,6 +368,11 @@ IS_OMAP_TYPE(3430, 0x3430) # define cpu_is_omap3430() is_omap3430() #endif +#if defined(CONFIG_ARCH_OMAP36XX) +# undef cpu_is_omap3630 +# define cpu_is_omap3630() 1 +#endif + # if defined(CONFIG_ARCH_OMAP4) # undef cpu_is_omap44xx # undef cpu_is_omap443x @@ -365,7 +384,7 @@ IS_OMAP_TYPE(3430, 0x3430) #define cpu_class_is_omap1() (cpu_is_omap7xx() || cpu_is_omap15xx() || \ cpu_is_omap16xx()) #define cpu_class_is_omap2() (cpu_is_omap24xx() || cpu_is_omap34xx() || \ - cpu_is_omap44xx()) + cpu_is_omap36xx || cpu_is_omap44xx()) /* Various silicon revisions for omap2 */ #define OMAP242X_CLASS 0x24200024 @@ -382,6 +401,9 @@ IS_OMAP_TYPE(3430, 0x3430) #define OMAP3430_REV_ES3_0 0x34303034 #define OMAP3430_REV_ES3_1 0x34304034 +#define OMAP363X_CLASS 0x36300036 +#define OMAP3630_REV_ES1_0 0x36300036 + #define OMAP443X_CLASS 0x44300034 /* @@ -406,6 +428,12 @@ IS_OMAP_TYPE(3430, 0x3430) #define CHIP_IS_OMAP3430ES3_0 (1 << 5) #define CHIP_IS_OMAP3430ES3_1 (1 << 6) +/* OMAP 3630 CHIP is backword compatible to 3430 + * 3630 ES1 IS compatible with 3430 ES2 */ + +#define CHIP_IS_OMAP3630 (1 << 2) +#define CHIP_IS_OMAP3630ES1 (1 << 4) + #define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430) /*