From patchwork Mon Jun 8 09:02:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 28598 X-Patchwork-Delegate: paul@pwsan.com 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 n5892dJe004680 for ; Mon, 8 Jun 2009 09:02:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754408AbZFHJCf (ORCPT ); Mon, 8 Jun 2009 05:02:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754135AbZFHJCf (ORCPT ); Mon, 8 Jun 2009 05:02:35 -0400 Received: from gateway-1237.mvista.com ([63.81.120.158]:21476 "EHLO gateway-1237.mvista.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754408AbZFHJCf convert rfc822-to-8bit (ORCPT ); Mon, 8 Jun 2009 05:02:35 -0400 Received: from ip6-localhost (asshur.mvista.com [10.0.0.11]) by hermes.mvista.com (Postfix) with ESMTP id 863FC1AD85; Mon, 8 Jun 2009 02:02:35 -0700 (PDT) From: Jean Pihet Organization: MontaVista To: Grazvydas Ignotas , Paul Walmsley Subject: Re: [RFC][PATCH] OMAP3: add support for 2 SDRAM chip selects (was: Re: Beagleboard rev C memory timings & suspend/resume) Date: Mon, 8 Jun 2009 11:02:00 +0200 User-Agent: KMail/1.9.9 Cc: Kevin Hilman , linux-omap References: <200904291553.49378.jpihet@mvista.com> <6ed0b2680906060350i4de093fbj3575ba117c084295@mail.gmail.com> In-Reply-To: <6ed0b2680906060350i4de093fbj3575ba117c084295@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200906081102.00779.jpihet@mvista.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Paul, Gražvydas, Ok, thanks! Here is a patch that addresses the Pandora's use of 2 SDRAM chip selects. It applies on top of 'OMAP3: add support for 2 SDRAM chip selects'. Is that OK? It has been build tested only. Regards, Jean From 297a0b09267fc1a0ae4428771ff54b73b27d5bbe Mon Sep 17 00:00:00 2001 From: Jean Pihet Date: Mon, 8 Jun 2009 10:49:53 +0200 Subject: OMAP3 Pandora: add support for 2 SDRAM chip selects This allows the self refresh to work correctly on Pandora. Signed-off-by: Jean Pihet --- arch/arm/mach-omap2/board-omap3pandora.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 05ab99e..ba015b4 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -220,7 +221,8 @@ static int __init omap3pandora_i2c_init(void) static void __init omap3pandora_init_irq(void) { - omap2_init_common_hw(mt46h32m32lf6_sdrc_params, NULL, + omap2_init_common_hw(mt46h32m32lf6_sdrc_params, + mt46h32m32lf6_sdrc_params, NULL, NULL, NULL); omap_init_irq(); omap_gpio_init(); @@ -307,6 +309,10 @@ static void __init omap3pandora_init(void) usb_ehci_init(); omap3pandora_flash_init(); omap3pandora_ads7846_init(); + + /* Ensure SDRC pins are mux'd for self-refresh */ + omap_cfg_reg(H16_34XX_SDRC_CKE0); + omap_cfg_reg(H17_34XX_SDRC_CKE1); } static void __init omap3pandora_map_io(void)