From patchwork Thu Apr 10 09:28:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 3960781 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 7B253BFF02 for ; Thu, 10 Apr 2014 09:33:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A340C20625 for ; Thu, 10 Apr 2014 09:33:41 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 73BD820612 for ; Thu, 10 Apr 2014 09:33:40 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBKW-0000La-S6; Thu, 10 Apr 2014 09:31:33 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBK9-0008W6-P0; Thu, 10 Apr 2014 09:31:09 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBIo-0008Nn-Ay for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 09:30:18 +0000 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3T009UO6C1NOA0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 18:28:49 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.115]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 2A.91.10364.15466435; Thu, 10 Apr 2014 18:28:49 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-ef-534664513a8f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id EE.27.28157.05466435; Thu, 10 Apr 2014 18:28:49 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3T00F1Z6C0I110@mmp2.samsung.com>; Thu, 10 Apr 2014 18:28:48 +0900 (KST) From: Chanwoo Choi To: kgene.kim@samsung.com, t.figa@samsung.com, linux-samsung-soc@vger.kernel.org Subject: [PATCH 03/27] ARM: EXYNOS: Add IO mapping for PMU of Exynos3250 Date: Thu, 10 Apr 2014 18:28:20 +0900 Message-id: <1397122124-15690-4-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+NgFvrHLMWRmVeSWpSXmKPExsWyRsSkWDcwxS3Y4N1KDovrX56zWnz+0MJu Men+BBaL3gVX2SzONr1ht9j0+BqrxeVdc9gsZpzfx2QxY/JLNov1M16zWOzdOZnRgdtj85J6 j74tqxg9Pm+SC2CO4rJJSc3JLEst0rdL4MqYPeUGa8EGror5jxsYGxgvcnQxcnBICJhINH5V 62LkBDLFJC7cW8/WxcjFISSwlFHi5NRZ7BAJE4m7/7eyQiSmM0pM/HGcBcJpYpJo/nWYEaSK TUBLYv+LG2wgtohAgMSP4+/AbGaBm4wSx96HgdjCAh4S12bNA6tnEVCVmH7lAQvIFbwCrhL7 W8MglslJfNjzCGwxp4CbxKfvrawgthBQSdOH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C 6YklqdmpqQWpRTBbmDg4pRoYxZLiem4e0551WVH2mzNP0cNlM/UtBXW+vIo+udLvu5//hUJL STZ3WbbdM87cP5YbrX/9GM++SUIzOmaqa64zdOBlszJVSyhKmRn14nueTpJ/kOqV3LTEOzPD hZPvHLvv/rtU7S1LFbPYkRu1/idvfvrjJ912ff3G2hkCoQ2PT6Tdc36fO7NIiaU4I9FQi7mo OBEANNTxXO4CAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140410_053003_169083_B45130E7 X-CRM114-Status: GOOD ( 11.65 ) X-Spam-Score: -7.5 (-------) Cc: hyunhee.kim@samsung.com, sw0312.kim@samsung.com, linux-kernel@vger.kernel.org, yj44.cho@samsung.com, inki.dae@samsung.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, linux-arm-kernel@lists.infradead.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=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This patch add memory mapping for PMU (Power Management Unit) which is used for power control of Exynos3250. Signed-off-by: Chanwoo Choi Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos/exynos.c | 5 +++++ arch/arm/mach-exynos/include/mach/map.h | 1 + 2 files changed, 6 insertions(+) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index cad3bfd..628e4b1 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -41,6 +41,11 @@ static struct map_desc exynos3250_iodesc[] __initdata = { .pfn = __phys_to_pfn(EXYNOS3_PA_SYSRAM_NS), .length = SZ_4K, .type = MT_DEVICE, + }, { + .virtual = (unsigned long)S5P_VA_PMU, + .pfn = __phys_to_pfn(EXYNOS3_PA_PMU), + .length = SZ_64K, + .type = MT_DEVICE, }, }; diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index a53981b..4aea694 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -36,6 +36,7 @@ #define EXYNOS4_PA_SYSCON 0x10010000 #define EXYNOS5_PA_SYSCON 0x10050100 +#define EXYNOS3_PA_PMU 0x10020000 #define EXYNOS4_PA_PMU 0x10020000 #define EXYNOS5_PA_PMU 0x10040000