From patchwork Thu May 14 19:50:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 23825 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 n4EJqeKi028615 for ; Thu, 14 May 2009 19:52:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754192AbZENTwg (ORCPT ); Thu, 14 May 2009 15:52:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754152AbZENTwg (ORCPT ); Thu, 14 May 2009 15:52:36 -0400 Received: from utopia.booyaka.com ([72.9.107.138]:43626 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753559AbZENTwe (ORCPT ); Thu, 14 May 2009 15:52:34 -0400 Received: (qmail 4983 invoked by uid 526); 14 May 2009 19:52:34 -0000 MBOX-Line: From nobody Thu May 14 13:50:31 2009 From: Paul Walmsley Subject: [PATCH v2 2/2] OMAP3 SDRC: Add rounded rates for devices using the Qimonda SDRAM To: linux-omap@vger.kernel.org Cc: Paul Walmsley , Kevin Hilman Date: Thu, 14 May 2009 13:50:31 -0600 Message-ID: <20090514195021.20623.63234.stgit@localhost.localdomain> In-Reply-To: <20090514194728.20623.60039.stgit@localhost.localdomain> References: <20090514194728.20623.60039.stgit@localhost.localdomain> User-Agent: StGIT/0.14.3.222.gddca MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The 3430SDPs, many of which use Qimonda SDRAM, are finally using bootloaders that program rounded rates for DPLL3. Since no SDRAM memory timings are defined for the rounded rates, the initial SDRC reprogram during init fails. Add in the correct timings here. Problem reported by Kevin Hilman . Signed-off-by: Paul Walmsley Tested-by: Kevin Hilman --- .../mach-omap2/sdram-qimonda-hyb18m512160af-6.h | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) -- 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/sdram-qimonda-hyb18m512160af-6.h b/arch/arm/mach-omap2/sdram-qimonda-hyb18m512160af-6.h index 8b6f929..3751d29 100644 --- a/arch/arm/mach-omap2/sdram-qimonda-hyb18m512160af-6.h +++ b/arch/arm/mach-omap2/sdram-qimonda-hyb18m512160af-6.h @@ -19,20 +19,34 @@ /* Qimonda HYB18M512160AF-6 */ static struct omap_sdrc_params hyb18m512160af6_sdrc_params[] = { [0] = { - .rate = 165941176, + .rate = 166000000, .actim_ctrla = 0x629db4c6, .actim_ctrlb = 0x00012214, .rfr_ctrl = 0x0004dc01, .mr = 0x00000032, }, [1] = { + .rate = 165941176, + .actim_ctrla = 0x629db4c6, + .actim_ctrlb = 0x00012214, + .rfr_ctrl = 0x0004dc01, + .mr = 0x00000032, + }, + [2] = { + .rate = 83000000, + .actim_ctrla = 0x31512283, + .actim_ctrlb = 0x0001220a, + .rfr_ctrl = 0x00025501, + .mr = 0x00000022, + }, + [3] = { .rate = 82970588, .actim_ctrla = 0x31512283, .actim_ctrlb = 0x0001220a, .rfr_ctrl = 0x00025501, .mr = 0x00000022, }, - [2] = { + [4] = { .rate = 0 }, };