Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935060AbaDJJ2z (ORCPT ); Thu, 10 Apr 2014 05:28:55 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:35111 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933149AbaDJJ2u (ORCPT ); Thu, 10 Apr 2014 05:28:50 -0400 X-AuditID: cbfee68f-b7f156d00000276c-cf-53466450916f From: Chanwoo Choi To: kgene.kim@samsung.com, t.figa@samsung.com, linux-samsung-soc@vger.kernel.org Cc: kyungmin.park@samsung.com, cw00.choi@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, hyunhee.kim@samsung.com, yj44.cho@samsung.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/27] ARM: EXYNOS: Add IO mapping for non-secure SYSRAM of Exynos3250 Date: Thu, 10 Apr 2014 18:28:19 +0900 Message-id: <1397122124-15690-3-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1397122124-15690-1-git-send-email-cw00.choi@samsung.com> References: <1397122124-15690-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLLMWRmVeSWpSXmKPExsWyRsSkQDcwxS3Y4PpvRovrX56zWnz+0MJu Men+BBaL3gVX2SzONr1ht9j0+BqrxeVdc9gsZpzfx2QxY/JLNov1M16zWOzdOZnRgdtj85J6 j74tqxg9Pm+SC2CO4rJJSc3JLEst0rdL4MpYsvAIc8FJvopnzYsZGxjX8HQxcnJICJhIbNxw nxnCFpO4cG89WxcjF4eQwFJGie7JU9lgilpPf2UFsYUEpjNKzDsmBFHUxCTR/OswI0iCTUBL Yv+LG2ANIgIBEj+OvwOzmQVuMkocex/WxcjBISwQIfHmfxFImEVAVWLLiQlgrbwCrhJH13Ww Q+ySk/iw5xGYzSngJvHpeyvUXleJpg/7oO5ZxS7xb3UYxBwBiW+TD7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XLC4ROsxe2CHiuvnbSZN8kpxuZHkbWnO23 QgzPC816IrUhU/XhrLXVicZHV4ZmHpJjvXIueD/riuPqMikPO1TK87P4fXxm3Pp1bcrKA70P 5zzwu5G+5LW2X8fUA+8me4l4v3D/5J7QW66RmK1SxZPf5uby/U28XnHSvm9KLMUZiYZazEXF iQDdP0lx7gIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The non-secure SYSRAM is used for secondary CPU bring-up. This patch add IO mapping for non-scure SYSRAM. Signed-off-by: Chanwoo Choi Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos/exynos.c | 12 ++++++++++++ arch/arm/mach-exynos/include/mach/map.h | 1 + 2 files changed, 13 insertions(+) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index b134868..cad3bfd 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -35,6 +35,15 @@ #define L2_AUX_VAL 0x7C470001 #define L2_AUX_MASK 0xC200ffff +static struct map_desc exynos3250_iodesc[] __initdata = { + { + .virtual = (unsigned long)S5P_VA_SYSRAM_NS, + .pfn = __phys_to_pfn(EXYNOS3_PA_SYSRAM_NS), + .length = SZ_4K, + .type = MT_DEVICE, + }, +}; + static struct map_desc exynos4_iodesc[] __initdata = { { .virtual = (unsigned long)S3C_VA_SYS, @@ -275,6 +284,9 @@ static int __init exynos_fdt_map_chipid(unsigned long node, const char *uname, */ static void __init exynos_map_io(void) { + if (soc_is_exynos3250()) + iotable_init(exynos3250_iodesc, ARRAY_SIZE(exynos3250_iodesc)); + if (soc_is_exynos4()) iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc)); diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index 7b046b5..a53981b 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -26,6 +26,7 @@ #define EXYNOS4_PA_SYSRAM0 0x02025000 #define EXYNOS4_PA_SYSRAM1 0x02020000 #define EXYNOS5_PA_SYSRAM 0x02020000 +#define EXYNOS3_PA_SYSRAM_NS 0x0205F000 #define EXYNOS4210_PA_SYSRAM_NS 0x0203F000 #define EXYNOS4x12_PA_SYSRAM_NS 0x0204F000 #define EXYNOS5250_PA_SYSRAM_NS 0x0204F000 -- 1.8.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/