From patchwork Wed Mar 11 14:21:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 449042 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 97D3C140146 for ; Thu, 12 Mar 2015 01:27:37 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=FFQXA8zM; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YVhZ3-0004dj-RK; Wed, 11 Mar 2015 14:24:49 +0000 Received: from mail-qg0-x22d.google.com ([2607:f8b0:400d:c04::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YVhWc-0002c4-Eq for linux-arm-kernel@lists.infradead.org; Wed, 11 Mar 2015 14:22:19 +0000 Received: by qgfi50 with SMTP id i50so10224614qgf.10 for ; Wed, 11 Mar 2015 07:21:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WAg9xu6e3NYzd1IGqasgUFGOXtRThQVrMbldo65DOw0=; b=FFQXA8zMbaFX6eeKOsE9+CclQur4f5NaVtKysUW/MZB0BS4d3f71VIHVVhGPD8bpxf A8ZKwbic0n+gMSiuckUznvuB1NrB46QeRDM7J7M2zBAQLy4HV32zXdttMcJ8MojoOhWG DS9SUmINEn/hyVDsG5bOJEB66HGnkf6NhJw0swo3+uVSJ+tRWwni6a09H2ZpQhGdZfzY gRGaU1imQw3oL2rIHeZWdJS6w6M/avFzrYf/eDdBHgoRXG21oeioW/RFNYmhFFYf0Dgq COXeFd44YSvgozIz9tlnNuPCoLjLclWnP0pbSt1db81J0mnnZLMFfu1Sf4vApkv1OSRD Rorg== X-Received: by 10.55.24.160 with SMTP id 32mr58568093qky.23.1426083716015; Wed, 11 Mar 2015 07:21:56 -0700 (PDT) Received: from localhost.localdomain ([177.194.98.53]) by mx.google.com with ESMTPSA id y10sm2643593qgd.14.2015.03.11.07.21.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Mar 2015 07:21:55 -0700 (PDT) From: Fabio Estevam To: shawn.guo@linaro.org Subject: [PATCH v2 3/7] ARM: mx25: Remove static memory mapping Date: Wed, 11 Mar 2015 11:21:30 -0300 Message-Id: <1426083694-6624-3-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1426083694-6624-1-git-send-email-festevam@gmail.com> References: <1426083694-6624-1-git-send-email-festevam@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150311_072218_616263_BC376CC7 X-CRM114-Status: GOOD ( 11.88 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400d:c04:0:0:0:22d listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org From: Fabio Estevam We use dynamic memory mapping when using dt, so remove all the static mappings. Signed-off-by: Fabio Estevam --- Changes since v1: - None arch/arm/mach-imx/mach-imx25.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/arch/arm/mach-imx/mach-imx25.c b/arch/arm/mach-imx/mach-imx25.c index 7cad96d..1a2c5de 100644 --- a/arch/arm/mach-imx/mach-imx25.c +++ b/arch/arm/mach-imx/mach-imx25.c @@ -20,26 +20,6 @@ #include "common.h" #include "hardware.h" -/* - * This table defines static virtual address mappings for I/O regions. - * These are the mappings common across all MX25 boards. - */ -static struct map_desc mx25_io_desc[] __initdata = { - imx_map_entry(MX25, AVIC, MT_DEVICE_NONSHARED), - imx_map_entry(MX25, AIPS1, MT_DEVICE_NONSHARED), - imx_map_entry(MX25, AIPS2, MT_DEVICE_NONSHARED), -}; - -/* - * This function initializes the memory map. It is called during the - * system startup to create static physical to virtual memory mappings - * for the IO modules. - */ -void static __init mx25_map_io(void) -{ - iotable_init(mx25_io_desc, ARRAY_SIZE(mx25_io_desc)); -} - void static __init imx25_init_early(void) { mxc_set_cpu_type(MXC_CPU_MX25); @@ -62,7 +42,6 @@ static const char * const imx25_dt_board_compat[] __initconst = { }; DT_MACHINE_START(IMX25_DT, "Freescale i.MX25 (Device Tree Support)") - .map_io = mx25_map_io, .init_early = imx25_init_early, .init_irq = mx25_init_irq, .dt_compat = imx25_dt_board_compat,