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: 1699281 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 836AF3FCDE for ; Mon, 5 Nov 2012 16:00:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751569Ab2KEQAO (ORCPT ); Mon, 5 Nov 2012 11:00:14 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:35046 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750785Ab2KEQAN (ORCPT ); Mon, 5 Nov 2012 11:00:13 -0500 Received: by mail-wg0-f44.google.com with SMTP id dr13so4061968wgb.1 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=IXPkQiJi6qz1TVYov6SUat1oi/K1U0AHRTzKm+72OWd4Ptap/rH23rj74H+GjhTlPf GgT4XYd6dQQlhIyairdZD7OEy4e6qp9/MdLt6RXDUSZ5+gbRMiIZd6wKGo+zMZnFhBIa YzCn4AC6hDsiR/OSWDGXDqn3owkA3rpNRGkCbWpekrj4EWyA63gvmTvefjrg2h6R1mX0 B/T7OfStjOlwuhaUPcmObTPxiXnT3dc8EmcSAdaSfC13E5OEqowAoiQcBrIy2NDo2h7d MZFLzDm8exXIYuKoIEZaIql/sEeckLUErGH7a6YBR38j02kPk1NCCrMwiR9DOEFCbFQm yqbw== 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 Cc: linux-arm-kernel@lists.infradead.org, p.zabel@pengutronix.de, s.nawrocki@samsung.com, mchehab@infradead.org, kernel@pengutronix.de, Javier Martin 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: ALoCoQljyqAdPcfJnSQWaaJp0d6dY+IYeBPOX62/LvqRm4htPxAFm9ZsovFxy3Lbbcmwz2NroxAU Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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); }