From patchwork Thu Jun 18 00:00:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 31020 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 n5I00JkS002690 for ; Thu, 18 Jun 2009 00:00:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752039AbZFRAAK (ORCPT ); Wed, 17 Jun 2009 20:00:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752525AbZFRAAJ (ORCPT ); Wed, 17 Jun 2009 20:00:09 -0400 Received: from mail-px0-f189.google.com ([209.85.216.189]:47227 "EHLO mail-px0-f189.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752039AbZFRAAI (ORCPT ); Wed, 17 Jun 2009 20:00:08 -0400 Received: by pxi27 with SMTP id 27so686372pxi.33 for ; Wed, 17 Jun 2009 17:00:11 -0700 (PDT) Received: by 10.142.242.11 with SMTP id p11mr708273wfh.132.1245283211503; Wed, 17 Jun 2009 17:00:11 -0700 (PDT) Received: from localhost ([216.254.16.51]) by mx.google.com with ESMTPS id 9sm303564wfc.36.2009.06.17.17.00.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Jun 2009 17:00:10 -0700 (PDT) From: Kevin Hilman To: linux-omap@vger.kernel.org Subject: [PATCH 2/2] OMAP3: SRAM size fix for HS/EMU devices Date: Wed, 17 Jun 2009 17:00:06 -0700 Message-Id: <1245283206-6568-2-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.6.3.2 In-Reply-To: <1245283206-6568-1-git-send-email-khilman@deeprootsystems.com> References: <1245283206-6568-1-git-send-email-khilman@deeprootsystems.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Tero Kristo SRAM size fix for HS/EMU devices Signed-off-by: Tero Kristo Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren --- arch/arm/plat-omap/sram.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) mode change 100644 => 100755 arch/arm/plat-omap/sram.c diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c old mode 100644 new mode 100755 index 65006df..80bf3b1 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c @@ -133,7 +133,11 @@ void __init omap_detect_sram(void) if (cpu_is_omap34xx()) { omap_sram_base = OMAP3_SRAM_PUB_VA; omap_sram_start = OMAP3_SRAM_PUB_PA; - omap_sram_size = 0x8000; /* 32K */ + if ((omap_type() == OMAP2_DEVICE_TYPE_EMU) || + (omap_type() == OMAP2_DEVICE_TYPE_SEC)) { + omap_sram_size = 0x7000; /* 28K */ + else + omap_sram_size = 0x8000; /* 32K */ } else { omap_sram_base = OMAP2_SRAM_PUB_VA; omap_sram_start = OMAP2_SRAM_PUB_PA;