From patchwork Fri Apr 11 18:01:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 3971721 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 55424BFF02 for ; Fri, 11 Apr 2014 18:04:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 74DB1201B4 for ; Fri, 11 Apr 2014 18:04:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B599A2017E for ; Fri, 11 Apr 2014 18:04:50 +0000 (UTC) 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 1WYfmv-0003aH-Fv; Fri, 11 Apr 2014 18:02:53 +0000 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYfmh-0003BI-Cw for linux-arm-kernel@lists.infradead.org; Fri, 11 Apr 2014 18:02:39 +0000 Received: by mail-pa0-f43.google.com with SMTP id bj1so5701034pad.16 for ; Fri, 11 Apr 2014 11:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=dhVX7iP/1V3GqMdjf+s0/yzVpGLwcjlcu/nKyeVJdY8=; b=U+S3ODGxECdy5uir4hvzld4pFU1FbWjxKKlZoIeJe4VC/UPTDWzTVFoKszQQNsQy0o tfFGlgEqmHXSAgIxsbibEh8aOour+/ZzZKlXTvbiKLGeaO9vduq52CjhKxiY4ZZ05JbN rxpbT3rM/2jEOk7PpAIct3NokWp3wpG/pIuoyZXj+aKYa8gX8n4UiGY7s/KKZ5ZAGmcj xzWjZ9lDm3sKjk4rLRm1WpOuiPI3FSKae+rwMxMYdczI2rErKblAy7l104tz8p8X8wjZ 7gUhzMmCSmqqmrgPG9XV5wH51e/yY46D5WkeW1vE2NOrGjyJUleMPtSrDLI+S7p+CQgr Eegw== X-Received: by 10.68.139.36 with SMTP id qv4mr29064146pbb.82.1397239338315; Fri, 11 Apr 2014 11:02:18 -0700 (PDT) Received: from localhost.localdomain ([122.171.66.111]) by mx.google.com with ESMTPSA id h6sm16993556pbl.75.2014.04.11.11.02.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 11:02:17 -0700 (PDT) From: Abhilash Kesavan To: abrestic@chromium.org, thomas.ab@samsung.com, inderpal.s@samsung.com, lorenzo.pieralisi@arm.com, linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com, nicolas.pitre@linaro.org, Dave.Martin@arm.com, t.figa@samsung.com Subject: [PATCH 3/5] ARM: EXYNOS5420: Add IO mapping for non-secure SYSRAM Date: Fri, 11 Apr 2014 23:31:49 +0530 Message-Id: <1397239311-27717-4-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397239311-27717-1-git-send-email-a.kesavan@samsung.com> References: <1397239311-27717-1-git-send-email-a.kesavan@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140411_110239_468266_0531A403 X-CRM114-Status: GOOD ( 12.04 ) X-Spam-Score: 0.0 (/) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, arnd@arndb.de, will.deacon@arm.com, robh+dt@kernel.org, grant.likely@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On the Exynos5420 non-secure SYSRAM is used for secondary CPU bring-up, so add a mapping for it. Signed-off-by: Thomas Abraham Signed-off-by: Abhilash Kesavan --- arch/arm/mach-exynos/exynos.c | 11 +++++++++++ arch/arm/mach-exynos/include/mach/map.h | 1 + 2 files changed, 12 insertions(+) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index b32a907..b1cf9d5 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -159,6 +159,15 @@ static struct map_desc exynos5250_iodesc[] __initdata = { }, }; +static struct map_desc exynos5420_iodesc[] __initdata = { + { + .virtual = (unsigned long)S5P_VA_SYSRAM_NS, + .pfn = __phys_to_pfn(EXYNOS5420_PA_SYSRAM_NS), + .length = SZ_4K, + .type = MT_DEVICE, + }, +}; + static struct map_desc exynos5_iodesc[] __initdata = { { .virtual = (unsigned long)S3C_VA_SYS, @@ -294,6 +303,8 @@ static void __init exynos_map_io(void) iotable_init(exynos4x12_iodesc, ARRAY_SIZE(exynos4x12_iodesc)); if (soc_is_exynos5250()) iotable_init(exynos5250_iodesc, ARRAY_SIZE(exynos5250_iodesc)); + if (soc_is_exynos5420()) + iotable_init(exynos5420_iodesc, ARRAY_SIZE(exynos5420_iodesc)); } void __init exynos_init_io(void) diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index 7b046b5..8c5be19 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -29,6 +29,7 @@ #define EXYNOS4210_PA_SYSRAM_NS 0x0203F000 #define EXYNOS4x12_PA_SYSRAM_NS 0x0204F000 #define EXYNOS5250_PA_SYSRAM_NS 0x0204F000 +#define EXYNOS5420_PA_SYSRAM_NS 0x02073000 #define EXYNOS_PA_CHIPID 0x10000000