From patchwork Mon May 26 05:54:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 4239661 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6BBEB9F1E7 for ; Mon, 26 May 2014 05:56:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F32320149 for ; Mon, 26 May 2014 05:56:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 99A6D2010E for ; Mon, 26 May 2014 05:56:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wonqs-0003sJ-Ef; Mon, 26 May 2014 05:53:38 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wonqp-0003rq-5K for linux-arm-kernel@lists.infradead.org; Mon, 26 May 2014 05:53:36 +0000 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N660062M30JR060@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 26 May 2014 14:53:07 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id A0.6C.13369.1C6D2835; Mon, 26 May 2014 14:53:05 +0900 (KST) X-AuditID: cbfee690-b7fb56d000003439-a7-5382d6c1b451 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7A.13.08203.1C6D2835; Mon, 26 May 2014 14:53:05 +0900 (KST) Received: from abhilash-ubuntu.sisodomain.com ([107.108.73.92]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N660094830ADW90@mmp2.samsung.com>; Mon, 26 May 2014 14:53:05 +0900 (KST) From: Abhilash Kesavan To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com, t.figa@samsung.com Subject: [PATCH] arm: exynos: Enable mcpm for dual-cluster 5800 SoC Date: Mon, 26 May 2014 11:24:36 +0530 Message-id: <1401083676-25660-1-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsWyRsSkSvfgtaZgg3lfBCwer1nMZNG74Cqb xabH11gtZpzfx2SxfsZrFgdWj81L6j36tqxi9Pi8SS6AOYrLJiU1J7MstUjfLoErY+G3hywF dzkqNj19ytrAuIK9i5GTQ0LAROLL6T1MELaYxIV769m6GLk4hASWMkrsnt0FV/Sz4w8LiC0k MJ1R4vjSegi7j0li5woPEJtNQE9iwb+vzCC2iECFxMU3f8CGMgvoSGyYvx6sV1jAWeLyzc+M IDaLgKrEqxf3geZzcPAKuErs3J8JYkoIKEjMmWQDcoKEwGM2idW3PrFAlAtIfJt8iAWiRlZi 0wFmiMskJQ6uuMEygVFwASPDKkbR1ILkguKk9CITveLE3OLSvHS95PzcTYzAMDz979mEHYz3 DlgfYkwGGjeRWUo0OR8Yxnkl8YbGZkYWpiamxkbmlmakCSuJ86o9SgoSEkhPLEnNTk0tSC2K LyrNSS0+xMjEwSnVwCi98npYnHrtulKD+3IW56Zb/+lzWlDvo//3hPr/yMn7Df/v1lv9j/EG i59Zax3vpr8dAYc2615cHHhnigpjiErz4wWPfy4yWqQ6Q6DAP7c2znVJ3z+z3apmQdt3burf MXUPyycXjp9SQV7PZLR298t66b6KOXLAXqT8dMOC434ec2S/GT9cdkWJpTgj0VCLuag4EQBG QEyMWQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMIsWRmVeSWpSXmKPExsVy+t9jQd2D15qCDeZO5rJ4vGYxk0Xvgqts FpseX2O1mHF+H5PF+hmvWRxYPTYvqffo27KK0ePzJrkA5qgGRpuM1MSU1CKF1Lzk/JTMvHRb Je/geOd4UzMDQ11DSwtzJYW8xNxUWyUXnwBdt8wcoJVKCmWJOaVAoYDE4mIlfTtME0JD3HQt YBojdH1DguB6jAzQQMIaxoyF3x6yFNzlqNj09ClrA+MK9i5GTg4JAROJnx1/WCBsMYkL99az gdhCAtMZJY4vrYew+5gkdq7wALHZBPQkFvz7ygxiiwhUSFx884cJxGYW0JHYMH892BxhAWeJ yzc/M4LYLAKqEq9e3AfaxcHBK+AqsXN/JogpIaAgMWeSzQRG7gWMDKsYRVMLkguKk9JzDfWK E3OLS/PS9ZLzczcxgoP8mdQOxpUNFocYBTgYlXh4D3g3BQuxJpYVV+YeYpTgYFYS4b2QCxTi TUmsrEotyo8vKs1JLT7EmAy0eyKzlGhyPjAC80riDY1NzE2NTS1NLEzMLEkTVhLnPdBqHSgk kJ5YkpqdmlqQWgSzhYmDU6qBUXyz0aUP7NcTA7KfySft3/VzPZfHtKu/jvjPnmj6/8g/Wf+g +uTW/DlHk1wcZ093aOaZW/xMwF1BKPrsAY3LJgl+52f/nvLkM2OOTO252x79xRsXTZ+o2NAy 8eH3/7Gry+WX+heuXtX1/oTZzZD115zt/xnfWLPEOtfij1918c0HnAe2uQR/dFViKc5INNRi LipOBABseuRytgIAAA== 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-20140525_225335_365516_996EC8C0 X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.6 (-----) Cc: Abhilash Kesavan 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=-2.5 required=5.0 tests=BAYES_00,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 5800 is very similar to 5420. We can re-use the existing MCPM support for 5800 for secondary boot-up and switching. Signed-off-by: Abhilash Kesavan --- arch/arm/mach-exynos/mcpm-exynos.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/mcpm-exynos.c b/arch/arm/mach-exynos/mcpm-exynos.c index 1ac618c..20707bd 100644 --- a/arch/arm/mach-exynos/mcpm-exynos.c +++ b/arch/arm/mach-exynos/mcpm-exynos.c @@ -290,13 +290,19 @@ static void __naked exynos_pm_power_up_setup(unsigned int affinity_level) "b cci_enable_port_for_self"); } +static const struct of_device_id exynos_dt_mcpm_match[] = { + { .compatible = "samsung,exynos5420" }, + { .compatible = "samsung,exynos5800" }, + {}, +}; + static int __init exynos_mcpm_init(void) { struct device_node *node; void __iomem *ns_sram_base_addr; int ret; - node = of_find_compatible_node(NULL, NULL, "samsung,exynos5420"); + node = of_find_matching_node(NULL, exynos_dt_mcpm_match); if (!node) return -ENODEV; of_node_put(node);