From patchwork Mon Nov 5 15:59:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martin X-Patchwork-Id: 197211 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8983B2C0040 for ; Tue, 6 Nov 2012 03:03:00 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TVP63-0007U2-2G; Mon, 05 Nov 2012 16:00:19 +0000 Received: from mail-we0-f177.google.com ([74.125.82.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TVP5z-0007TV-7P for linux-arm-kernel@lists.infradead.org; Mon, 05 Nov 2012 16:00:16 +0000 Received: by mail-we0-f177.google.com with SMTP id u50so2613159wey.36 for ; Mon, 05 Nov 2012 08:00:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=Ry6jxngf7/zVac5jg7hCXSMzYtlyOJ/HEwXLxkibRLg=; b=o3ao5L+ZxJLBKxZI3YLPopQcv8yYYqMqDVpvD7ZGo9MkX88FAfF4ccB+Ga5DSTriIs gsrDRR3G4usLd9j5eMxn25/g37V701Ewp14Z7e0eWu7Xt0OHrX8qXVZ+ItQagFgqqMzN wyAIeMejEdKq3lyIG1T3HoZAyEFSVK0FOG+2t0yu8jIRJm4CsfzuQ1N0T7ZQrVQ33/kl Bq3PDIxfyNejRCNn1Z3n7N6BK/zH3pqPLiSj67b8DSeYK0UMGB/JysQZhFjvU0YtSbxB r7CiRs9YxCf9lNwzgAjX+M45hzwY0kA23dcwqv0ZA+wIWzYjCN6heTu2o/G23le6oikK Gedw== Received: by 10.180.104.97 with SMTP id gd1mr13955860wib.4.1352131211972; Mon, 05 Nov 2012 08:00:11 -0800 (PST) Received: from piscis.vsilicon.net (149.93.18.95.dynamic.jazztel.es. [95.18.93.149]) by mx.google.com with ESMTPS id j8sm10915175wiy.9.2012.11.05.08.00.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Nov 2012 08:00:11 -0800 (PST) From: Javier Martin To: linux-media@vger.kernel.org Subject: [PATCH 1/2] ARM: i.MX27: Add platform support for IRAM. Date: Mon, 5 Nov 2012 16:59:44 +0100 Message-Id: <1352131185-12079-1-git-send-email-javier.martin@vista-silicon.com> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQl1wHH5iK6WyG2PbPtDCs+G61bhgqG5BjIGtIXE/nJwY+ln9xeCaDaOEAKwi+Bpuep+/2pY X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121105_110015_455476_186A8F10 X-CRM114-Status: GOOD ( 12.68 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: s.nawrocki@samsung.com, mchehab@infradead.org, Javier Martin , kernel@pengutronix.de, p.zabel@pengutronix.de, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Add support for IRAM to i.MX27 non-DT platforms using iram_init() function. Signed-off-by: Javier Martin --- arch/arm/mach-imx/mm-imx27.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-imx/mm-imx27.c b/arch/arm/mach-imx/mm-imx27.c index e7e24af..fd2416d 100644 --- a/arch/arm/mach-imx/mm-imx27.c +++ b/arch/arm/mach-imx/mm-imx27.c @@ -27,6 +27,7 @@ #include #include #include +#include /* MX27 memory map definition */ static struct map_desc imx27_io_desc[] __initdata = { @@ -94,4 +95,6 @@ void __init imx27_soc_init(void) /* imx27 has the imx21 type audmux */ platform_device_register_simple("imx21-audmux", 0, imx27_audmux_res, ARRAY_SIZE(imx27_audmux_res)); + /* imx27 has an iram of 46080 bytes size */ + iram_init(MX27_IRAM_BASE_ADDR, 46080); }