From patchwork Thu Apr 10 09:37:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 3961001 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 C1372BFF02 for ; Thu, 10 Apr 2014 09:40:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 046D120625 for ; Thu, 10 Apr 2014 09:40:46 +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 147BE20612 for ; Thu, 10 Apr 2014 09:40:45 +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 1WYBRw-0004ay-PD; Thu, 10 Apr 2014 09:39:13 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBRf-0000VK-Hk; Thu, 10 Apr 2014 09:38:55 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBRA-0000Pq-D4 for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 09:38:28 +0000 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3T002HX6R46K00@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 18:37:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.113]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id ED.45.10364.07666435; Thu, 10 Apr 2014 18:37:52 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-de-53466670c464 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 8F.06.29263.07666435; Thu, 10 Apr 2014 18:37:52 +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 <0N3T00EPX6R12T70@mmp2.samsung.com>; Thu, 10 Apr 2014 18:37:52 +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:37:14 +0900 Message-id: <1397122658-16013-4-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1397122658-16013-1-git-send-email-cw00.choi@samsung.com> References: <1397122658-16013-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPLMWRmVeSWpSXmKPExsWyRsSkULcgzS3YYOd9FYvrX56zWnz+0MJu Men+BBaL3gVX2SzONr1ht9j0+BqrxeVdc9gsZpzfx2QxY/JLNov1M16zWOzdOZnRgdtj85J6 j74tqxg9Pm+SC2CO4rJJSc3JLEst0rdL4MqYPeUGa8EGror5jxsYGxgvcnQxcnJICJhIvNn8 iAXCFpO4cG89WxcjF4eQwFJGiQkX+9lgiv7dusUEkZjOKHF3/WUop4lJ4tj+d0wgVWwCWhL7 X9wA6xARCJD4cfwdmM0scJNR4tj7MBBbWMBD4tqseYxdjBwcLAKqEtea+EDCvAKuEks/XWOC WCYn8WHPI3YQm1PATWLmopNgY4SAanoeXWQG2SshsI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anZqakFqUUwW5g4OKUaGP1O3fmQc69GM6/LZYr9gv9H3E/P3p4d4LZm42QLf4477tJM kx9M9AstKwso+PA/YMqMrT8Pni1lmSD7Jnf6I85dsjnMxq3zDRO38Tukefk0zDG1MP5d+/dy ZeXiqSbXzA0XKG+R3LjtE5NRxz3XDSt3dgpslDCJ9gh7q5atVqK1qKlN+2InixJLcUaioRZz UXEiAD7bA53vAgAA 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_053824_938313_BF9D3775 X-CRM114-Status: GOOD ( 12.03 ) 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