From patchwork Thu Apr 16 19:17:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6227591 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 19610BF4A6 for ; Thu, 16 Apr 2015 19:26:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 402D6202A1 for ; Thu, 16 Apr 2015 19:26:05 +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 63B62202FF for ; Thu, 16 Apr 2015 19:26:04 +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 1YipNt-0006up-9R; Thu, 16 Apr 2015 19:23:33 +0000 Received: from mail-bl2on0113.outbound.protection.outlook.com ([65.55.169.113] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YipLI-0005GQ-Dj for linux-arm-kernel@lists.infradead.org; Thu, 16 Apr 2015 19:21:05 +0000 Received: from BN3PR03MB1352.namprd03.prod.outlook.com (0.163.34.150) by BN3PR03MB1366.namprd03.prod.outlook.com (0.163.34.152) with Microsoft SMTP Server (TLS) id 15.1.136.25; Thu, 16 Apr 2015 19:20:29 +0000 Received: from BN3PR0301CA0075.namprd03.prod.outlook.com (0.160.152.171) by BN3PR03MB1352.namprd03.prod.outlook.com (0.163.34.150) with Microsoft SMTP Server (TLS) id 15.1.136.25; Thu, 16 Apr 2015 19:20:28 +0000 Received: from BN1BFFO11FD042.protection.gbl (2a01:111:f400:7c10::1:108) by BN3PR0301CA0075.outlook.office365.com (2a01:111:e400:401e::43) with Microsoft SMTP Server (TLS) id 15.1.136.25 via Frontend Transport; Thu, 16 Apr 2015 19:20:28 +0000 Authentication-Results: spf=temperror (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of freescale.com: DNS Timeout) Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD042.mail.protection.outlook.com (10.58.144.105) with Microsoft SMTP Server (TLS) id 15.1.148.11 via Frontend Transport; Thu, 16 Apr 2015 19:20:27 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t3GJKCTH006249; Thu, 16 Apr 2015 12:20:25 -0700 From: To: , Subject: [PATCH v2 6/9] ARM: imx: add gpt system timer support for imx7d Date: Fri, 17 Apr 2015 03:17:37 +0800 Message-ID: <1429211860-14438-7-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429211860-14438-1-git-send-email-Frank.Li@freescale.com> References: <1429211860-14438-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; BMV:1; SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(19580405001)(6806004)(4001410100001)(76176999)(86362001)(47776003)(19580395003)(2950100001)(50986999)(62966003)(50466002)(48376002)(46102003)(87936001)(104016003)(92566002)(106466001)(77156002)(77096005)(36756003)(229853001)(86152002)(50226001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR03MB1352; H:az84smr01.freescale.net; FPR:; SPF:TempError; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1352; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1366; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5002010)(5005006); SRVR:BN3PR03MB1352; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1352; X-Forefront-PRVS: 0548586081 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2015 19:20:27.1166 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1352 X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150416_122052_663202_F614A967 X-CRM114-Status: UNSURE ( 8.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) Cc: Anson Huang , Frank Li , linux-arm-kernel@lists.infradead.org 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=-2.9 required=5.0 tests=BAYES_00,RCVD_ILLEGAL_IP, RCVD_IN_DNSWL_MED,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham 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: Frank Li Add GPT system timer support for i.MX7D, it has same hardware as i.MX6DL. Signed-off-by: Frank Li Signed-off-by: Anson Huang --- arch/arm/mach-imx/time.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/time.c b/arch/arm/mach-imx/time.c index 15d18e1..7c1d8a3 100644 --- a/arch/arm/mach-imx/time.c +++ b/arch/arm/mach-imx/time.c @@ -321,7 +321,7 @@ static void __init _mxc_timer_init(int irq, tctl_val = V2_TCTL_FRR | V2_TCTL_WAITEN | MXC_TCTL_TEN; if (clk_get_rate(clk_per) == V2_TIMER_RATE_OSC_DIV8) { tctl_val |= V2_TCTL_CLK_OSC_DIV8; - if (cpu_is_imx6dl() || cpu_is_imx6sx()) { + if (cpu_is_imx6dl() || cpu_is_imx6sx() || cpu_is_imx7d()) { /* 24 / 8 = 3 MHz */ __raw_writel(7 << V2_TPRER_PRE24M, timer_base + MXC_TPRER); @@ -383,3 +383,4 @@ CLOCKSOURCE_OF_DECLARE(mx53_timer, "fsl,imx53-gpt", mxc_timer_init_dt); CLOCKSOURCE_OF_DECLARE(mx6q_timer, "fsl,imx6q-gpt", mxc_timer_init_dt); CLOCKSOURCE_OF_DECLARE(mx6sl_timer, "fsl,imx6sl-gpt", mxc_timer_init_dt); CLOCKSOURCE_OF_DECLARE(mx6sx_timer, "fsl,imx6sx-gpt", mxc_timer_init_dt); +CLOCKSOURCE_OF_DECLARE(mx7d_timer, "fsl,imx7d-gpt", mxc_timer_init_dt);