From patchwork Tue Jul 22 04:32:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 4599451 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 154499F295 for ; Tue, 22 Jul 2014 04:37:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3ABA520125 for ; Tue, 22 Jul 2014 04:37:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2DF1420123 for ; Tue, 22 Jul 2014 04:37:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X9RmG-0004TQ-LH; Tue, 22 Jul 2014 04:34:12 +0000 Received: from mail-by2lp0236.outbound.protection.outlook.com ([207.46.163.236] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X9RmE-0004RW-Fn for linux-arm-kernel@lists.infradead.org; Tue, 22 Jul 2014 04:34:11 +0000 Received: from BY2PR03CA079.namprd03.prod.outlook.com (10.141.249.52) by BL2PR03MB306.namprd03.prod.outlook.com (10.141.68.14) with Microsoft SMTP Server (TLS) id 15.0.995.11; Tue, 22 Jul 2014 04:33:47 +0000 Received: from BN1BFFO11FD025.protection.gbl (2a01:111:f400:7c10::1:164) by BY2PR03CA079.outlook.office365.com (2a01:111:e400:2c5d::52) with Microsoft SMTP Server (TLS) id 15.0.990.7 via Frontend Transport; Tue, 22 Jul 2014 04:33:46 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD025.mail.protection.outlook.com (10.58.144.88) with Microsoft SMTP Server (TLS) id 15.0.980.11 via Frontend Transport; Tue, 22 Jul 2014 04:33:46 +0000 Received: from dragon.ap.freescale.net ([10.192.185.46]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s6M4XcED012890; Mon, 21 Jul 2014 21:33:43 -0700 From: Shawn Guo To: Subject: [PATCH v2] ARM: i.MX6: add more chip revision support Date: Tue, 22 Jul 2014 12:32:54 +0800 Message-ID: <1406003574-4977-1-git-send-email-shawn.guo@freescale.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(199002)(189002)(47776003)(19580405001)(80022001)(104016003)(74502001)(50986999)(50466002)(83072002)(26826002)(102836001)(77982001)(77156001)(81156004)(36756003)(4396001)(85852003)(110136001)(97736001)(19580395003)(83322001)(89996001)(107046002)(106466001)(33646002)(87936001)(21056001)(105606002)(74662001)(92726001)(64706001)(79102001)(50226001)(46102001)(2351001)(84676001)(86362001)(93916002)(69596002)(81342001)(229853001)(20776003)(99396002)(31966008)(48376002)(81542001)(76482001)(68736004)(92566001)(104166001)(95666004)(44976005)(87286001)(85306003)(6806004)(62966002)(88136002); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB306; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02801ACE41 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=Shawn.Guo@freescale.com; X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140721_213410_603763_07938878 X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Jason Liu , Shawn Guo , kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jason Liu Add more revision support for the new i.MX6DQ tape-out (TO1.5). This TO1.5 is the Rev 1.3 as documented in i.MX6DQ data sheet, because TO1.3 and TO1.4 are never revealed. Signed-off-by: Jason Liu Signed-off-by: Shawn Guo Acked-by: Sascha Hauer --- Changes since v1: - Add a note in code for the numbering mismatch between code and data sheet - Fix a typo of tape-out in commit log arch/arm/mach-imx/anatop.c | 13 +++++++++++++ arch/arm/mach-imx/mxc.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c index 4a40bbb46183..8259a625a920 100644 --- a/arch/arm/mach-imx/anatop.c +++ b/arch/arm/mach-imx/anatop.c @@ -104,6 +104,19 @@ void __init imx_init_revision_from_anatop(void) case 2: revision = IMX_CHIP_REVISION_1_2; break; + case 3: + revision = IMX_CHIP_REVISION_1_3; + break; + case 4: + revision = IMX_CHIP_REVISION_1_4; + break; + case 5: + /* + * i.MX6DQ TO1.5 is defined as Rev 1.3 in Data Sheet, marked + * as 'D' in Part Number last character. + */ + revision = IMX_CHIP_REVISION_1_5; + break; default: revision = IMX_CHIP_REVISION_UNKNOWN; } diff --git a/arch/arm/mach-imx/mxc.h b/arch/arm/mach-imx/mxc.h index a39b69ef4301..17a41ca65acf 100644 --- a/arch/arm/mach-imx/mxc.h +++ b/arch/arm/mach-imx/mxc.h @@ -43,6 +43,8 @@ #define IMX_CHIP_REVISION_1_1 0x11 #define IMX_CHIP_REVISION_1_2 0x12 #define IMX_CHIP_REVISION_1_3 0x13 +#define IMX_CHIP_REVISION_1_4 0x14 +#define IMX_CHIP_REVISION_1_5 0x15 #define IMX_CHIP_REVISION_2_0 0x20 #define IMX_CHIP_REVISION_2_1 0x21 #define IMX_CHIP_REVISION_2_2 0x22