From patchwork Mon Jun 22 11:46:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 31738 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 n5MBkUk3014944 for ; Mon, 22 Jun 2009 11:46:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754823AbZFVLqY (ORCPT ); Mon, 22 Jun 2009 07:46:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753593AbZFVLqY (ORCPT ); Mon, 22 Jun 2009 07:46:24 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:61149 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755075AbZFVLqX (ORCPT ); Mon, 22 Jun 2009 07:46:23 -0400 Received: from muru.com ([72.249.23.125] helo=[127.0.0.1]) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1MIhyj-000Iiu-EJ; Mon, 22 Jun 2009 11:46:25 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 72.249.23.125 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+w1rJLyM2zlQznpzrn5Ef9 Subject: [PATCH 07/12] OMAP3: SRAM size fix for HS/EMU devices To: linux-arm-kernel@lists.arm.linux.org.uk From: Tony Lindgren Cc: Tero Kristo , Kevin Hilman , linux-omap@vger.kernel.org Date: Mon, 22 Jun 2009 14:46:23 +0300 Message-ID: <20090622114623.28477.53574.stgit@localhost> In-Reply-To: <20090622113422.28477.27052.stgit@localhost> References: <20090622113422.28477.27052.stgit@localhost> User-Agent: StGit/0.14.3.347.g594a MIME-Version: 1.0 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 | 7 ++++++- 1 files changed, 6 insertions(+), 1 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/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index a5b9bcd..1c18de9 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c @@ -133,7 +133,12 @@ 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;