From patchwork Wed Dec 18 08:05:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3368401 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 8BB06C0D4A for ; Wed, 18 Dec 2013 08:08:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F575203FB for ; Wed, 18 Dec 2013 08:08:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 35D62203E5 for ; Wed, 18 Dec 2013 08:08:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752098Ab3LRIIt (ORCPT ); Wed, 18 Dec 2013 03:08:49 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:41688 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905Ab3LRIIt (ORCPT ); Wed, 18 Dec 2013 03:08:49 -0500 Received: by mail-pa0-f51.google.com with SMTP id fa1so5608358pad.24 for ; Wed, 18 Dec 2013 00:08:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CCnMb7MBkWCIX3pNFMC4ks/m9djlgRJCzPTRJrUDJfI=; b=LZIBRKYVr1G5aG5OxIRazWuNaq+5BIXR5at8UUzXKAYD4DLF47gO9QeB8SnPWq4Nt6 ngB9DHj49tVmWYKby58bpuJwla4HjLP1Hixkke21E2A27VEm8DNLsudDQm8Kwuc5dR3Z 3bF8bboRfu442HaBrmr2RTNT/a8SMAQw6alnk4a+ibGEDX5O10Xjq3lN/WgiNo1KaT0V 4p3wXiHhzvIGUN2yegRZaFiHGxuyoh2MqZ4Hy26kiJvnJDUg3y+ZB8Ey1OixxeYvu64C pRONppqh7/a3ZI4lk+D3Mwlwrultog5lb/37PU7RcKY4maxwpKt3srs/UuMo8AEvxdqz eK6g== X-Gm-Message-State: ALoCoQlfYv6yyAJekpShsaFJG5dCuTmSJ/v1JF6gF0f9crzd7gqg4mE+ui+ksXrUDJikGlu3MrWW X-Received: by 10.68.129.99 with SMTP id nv3mr32617873pbb.40.1387354128415; Wed, 18 Dec 2013 00:08:48 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id i10sm52953009pat.11.2013.12.18.00.08.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 00:08:47 -0800 (PST) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: kgene.kgene.kim@samsung.com, t.figa@samsung.com, sachin.kamat@linaro.org, tushar.behera@linaro.org Subject: [PATCH 1/3] ARM: EXYNOS: Add IO mapping for non-secure SYSRAM Date: Wed, 18 Dec 2013 13:35:33 +0530 Message-Id: <1387353935-1335-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 trustzone enabled boards non-secure SYSRAM is used for secondary CPU boot up. Signed-off-by: Sachin Kamat Signed-off-by: Tushar Behera --- arch/arm/mach-exynos/common.c | 11 +++++++++++ arch/arm/mach-exynos/include/mach/map.h | 1 + 2 files changed, 12 insertions(+) diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index e353a837840b..97aa5b4b079a 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c @@ -240,6 +240,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, @@ -397,6 +406,8 @@ static void __init exynos5_map_io(void) iotable_init(exynos5250_iodesc, ARRAY_SIZE(exynos5250_iodesc)); if (soc_is_exynos5410()) iotable_init(exynos5410_iodesc, ARRAY_SIZE(exynos5410_iodesc)); + if (soc_is_exynos5420()) + iotable_init(exynos5420_iodesc, ARRAY_SIZE(exynos5420_iodesc)); } struct bus_type exynos_subsys = { diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index 894f431366a9..75fdc6c1bfcd 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -30,6 +30,7 @@ #define EXYNOS4x12_PA_SYSRAM_NS 0x0204F000 #define EXYNOS5250_PA_SYSRAM_NS 0x0204F000 #define EXYNOS5410_PA_SYSRAM_NS 0x02073000 +#define EXYNOS5420_PA_SYSRAM_NS 0x02073000 #define EXYNOS_PA_CHIPID 0x10000000