From patchwork Wed Dec 18 08:08:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3368441 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 2A7CAC0D4A for ; Wed, 18 Dec 2013 08:11:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8060A202C8 for ; Wed, 18 Dec 2013 08:11:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6567D20274 for ; Wed, 18 Dec 2013 08:11:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752148Ab3LRILX (ORCPT ); Wed, 18 Dec 2013 03:11:23 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:58118 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751258Ab3LRILX (ORCPT ); Wed, 18 Dec 2013 03:11:23 -0500 Received: by mail-pd0-f171.google.com with SMTP id z10so7907820pdj.2 for ; Wed, 18 Dec 2013 00:11:23 -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=SBdOC2JTsbsxy6uVEVExroaZgTyRQyXXElJD1WIL9h6oUxRer/R8Q0wXGOhQkRPZQ9 TOT4+NqTQhDqdJNsFUO+Zz57m2al66w4Hdv7jond0vO/Q1ADe+wpKA5yRGKi5ThTjzDx 7JfXdAhPbJXXnzrpLEeJpWtKi0mqkEOodSsBhLocntez2NNLK+pMG7ED0rXriXH931tH cBRw/i+IO7JL6QpZphn3h77MQ4KswBtolTKTtJdPt8+7onQkBoA8EQ0RZ57uy35yfqbj epbR7V6SflxKs3tlWualX5CCtQLDv0PjCAsiieGjtP9+filtbqvhkYh5Bf2DOFvDjO4g xMSw== X-Gm-Message-State: ALoCoQkTo4cSMghgjvrI5gli3u9+z0kAqGZRStGrsLR3CNtKiVuvJ6FNeUffyWDCcgfLd7pok2IV X-Received: by 10.66.26.106 with SMTP id k10mr32825445pag.136.1387354282950; Wed, 18 Dec 2013 00:11:22 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id lh13sm52950143pab.4.2013.12.18.00.11.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 00:11:22 -0800 (PST) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: 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:38:10 +0530 Message-Id: <1387354092-4084-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