From patchwork Tue May 17 21:42:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Gardiner X-Patchwork-Id: 792502 Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4HLk3Zc008506 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 17 May 2011 21:46:24 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p4HLjJC5025553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 May 2011 16:45:19 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id p4HLjJxZ006674; Tue, 17 May 2011 16:45:19 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id B8DF58062E; Tue, 17 May 2011 16:45:18 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id 027698062E for ; Tue, 17 May 2011 16:42:31 -0500 (CDT) Received: from neches.ext.ti.com (localhost [127.0.0.1]) by dflp52.itg.ti.com (8.13.7/8.13.7) with ESMTP id p4HLgVfl016850 for ; Tue, 17 May 2011 16:42:31 -0500 (CDT) Received: from psmtp.com (na3sys009amx200.postini.com [74.125.149.236]) by neches.ext.ti.com (8.13.7/8.13.7) with SMTP id p4HLgUEI012155 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 17 May 2011 16:42:30 -0500 Received: from na3sys009aog114.obsmtp.com ([209.85.161.176]) (using TLSv1) by na3sys009amx200.postini.com ([74.125.148.10]) with SMTP; Tue, 17 May 2011 21:42:30 GMT Received: from mail-gx0-f176.google.com ([209.85.161.176]) (using TLSv1) by na3sys009aob114.postini.com ([74.125.148.12]) with SMTP ID DSNKTdLrxc37NIP59IxyO/sf+C4phoj/daKP@postini.com; Tue, 17 May 2011 14:42:30 PDT Received: by mail-gx0-f176.google.com with SMTP id 7so418558gxk.7 for ; Tue, 17 May 2011 14:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nanometrics.ca; s=google; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=2R+Psq9yGTNnw65Wn/yTu298lr7sQ5M7+Q/Kcv7lAaU=; b=gjfyZBPeA1ZbbF5xwX2X4Vd/0PK6DHO3tRQifWzxhbEH+phud1mUrH2TDW7Q3gAcQQ 6XZ133p2VX5XoZ8NpMXhZlEfq3xL5Cx8M00WNiOgB5oKCwhYVidRcY4nS2JhmkEcHWoh Ik1s5hRsyuQkjwH1eAkXbPDm7GR1R/vAQDE6U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=nanometrics.ca; s=google; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=fN/sJ+RAJtxM1XX7me8O/tbh2ab9Tlc/gSBhHPzYlNoYR0ZbVmUrT5gN/K9496Y2Wn 88WksKQH8luzQoT4GoTaTKJ+Mailbam+NtSRzmKqPivoSpRYv60dWTE6sMik5YjTQ4Vp +hGstQYgdXzDg8AYRu8eBEk0PlVPdmb1XRWyo= Received: by 10.151.28.15 with SMTP id f15mr846036ybj.295.1305668549098; Tue, 17 May 2011 14:42:29 -0700 (PDT) Received: from localhost.localdomain ([206.191.47.130]) by mx.google.com with ESMTPS id s18sm459367ybg.10.2011.05.17.14.42.25 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 May 2011 14:42:26 -0700 (PDT) From: Ben Gardiner To: Sekhar Nori , davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH 9/9] davinci: da850: changed SRAM allocator to shared ram. Date: Tue, 17 May 2011 17:42:05 -0400 Message-Id: X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: X-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.0750) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [db-null] Cc: Subhasish Ghosh , Russell King - ARM Linux , linux-arm-kernel@lists.infradead.org X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 17 May 2011 21:46:24 +0000 (UTC) From: Subhasish Ghosh This patch modifies the sram allocator to allocate memory from the DA8XX shared RAM. Signed-off-by: Subhasish Ghosh [rebased onto consolidated SRAM patches] Signed-off-by: Ben Gardiner --- arch/arm/mach-davinci/da850.c | 4 ++-- arch/arm/mach-davinci/include/mach/da8xx.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 5754338..cdb7e77 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -1093,8 +1093,8 @@ static struct davinci_soc_info davinci_soc_info_da850 = { .gpio_irq = IRQ_DA8XX_GPIO0, .serial_dev = &da8xx_serial_device, .emac_pdata = &da8xx_emac_pdata, - .sram_phys = DA8XX_ARM_RAM_BASE, - .sram_len = SZ_8K, + .sram_phys = DA8XX_SHARED_RAM_BASE, + .sram_len = SZ_128K, .reset_device = &da8xx_wdt_device, }; diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index e4fc1af..09b8ddb 100644 --- a/arch/arm/mach-davinci/include/mach/da8xx.h +++ b/arch/arm/mach-davinci/include/mach/da8xx.h @@ -72,6 +72,7 @@ extern unsigned int da850_max_speed; #define DA8XX_AEMIF_CTL_BASE 0x68000000 #define DA8XX_DDR2_CTL_BASE 0xb0000000 #define DA8XX_ARM_RAM_BASE 0xffff0000 +#define DA8XX_SHARED_RAM_BASE 0x80000000 void __init da830_init(void); void __init da850_init(void);