From patchwork Tue Dec 21 19:44:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Hunter X-Patchwork-Id: 424971 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBLJiwhs007728 for ; Tue, 21 Dec 2010 19:45:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752598Ab0LUTpW (ORCPT ); Tue, 21 Dec 2010 14:45:22 -0500 Received: from smtp.nokia.com ([147.243.1.48]:30515 "EHLO mgw-sa02.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752353Ab0LUTpV (ORCPT ); Tue, 21 Dec 2010 14:45:21 -0500 Received: from nokia.com (localhost [127.0.0.1]) by mgw-sa02.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id oBLJj1Hk017223; Tue, 21 Dec 2010 21:45:01 +0200 Received: from ahunter-work.research.nokia.com ([essapo-nirac252178.europe.nokia.com [10.162.252.178]]) by mgw-sa02.nokia.com with RELAY id oBLJimav017036 ; Tue, 21 Dec 2010 21:44:50 +0200 From: Adrian Hunter To: Tony Lindgren Cc: Felipe Balbi , linux-arm Mailing List , linux-mtd Mailing List , linux-omap Mailing List , Kyungmin Park , Adrian Hunter Date: Tue, 21 Dec 2010 21:44:48 +0200 Message-Id: <20101221194448.3127.32165.sendpatchset@ahunter-work.research.nokia.com> In-Reply-To: <20101221194433.3127.74744.sendpatchset@ahunter-work.research.nokia.com> References: <20101221194433.3127.74744.sendpatchset@ahunter-work.research.nokia.com> Subject: [PATCH 2/2] OMAP2/3: OneNAND: add 104MHz support X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 21 Dec 2010 19:45:23 +0000 (UTC) diff --git a/arch/arm/mach-omap2/gpmc-onenand.c b/arch/arm/mach-omap2/gpmc-onenand.c index 1db606c..3a7d25f 100644 --- a/arch/arm/mach-omap2/gpmc-onenand.c +++ b/arch/arm/mach-omap2/gpmc-onenand.c @@ -173,6 +173,15 @@ static int omap2_onenand_set_sync_mode(struct omap_onenand_platform_data *cfg, } switch (freq) { + case 104: + min_gpmc_clk_period = 9600; /* 104 MHz */ + t_ces = 3; + t_avds = 4; + t_avdh = 2; + t_ach = 3; + t_aavdh = 6; + t_rdyo = 9; + break; case 83: min_gpmc_clk_period = 12000; /* 83 MHz */ t_ces = 5; diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index 9f322f1..d0894ca 100644 --- a/drivers/mtd/onenand/omap2.c +++ b/drivers/mtd/onenand/omap2.c @@ -721,6 +721,9 @@ static int __devinit omap2_onenand_probe(struct platform_device *pdev) case 3: c->freq = 83; break; + case 4: + c->freq = 104; + break; } #ifdef CONFIG_MTD_PARTITIONS