From patchwork Mon Nov 24 13:04:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 5366051 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 C7A53C11AC for ; Mon, 24 Nov 2014 13:15:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF3BB203E1 for ; Mon, 24 Nov 2014 13:15:49 +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 23D25203DF for ; Mon, 24 Nov 2014 13:15:49 +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 1XstRy-0008IF-Ar; Mon, 24 Nov 2014 13:13:06 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XstRt-00087S-4c for linux-arm-kernel@lists.infradead.org; Mon, 24 Nov 2014 13:13:02 +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 <0NFJ00496OP0SMD0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 24 Nov 2014 22:12:36 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.122]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 06.60.18167.4CE23745; Mon, 24 Nov 2014 22:12:36 +0900 (KST) X-AuditID: cbfee690-f79ab6d0000046f7-99-54732ec4ca13 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 07.25.09430.4CE23745; Mon, 24 Nov 2014 22:12:36 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NFJ00EZLOLG6V60@mmp2.samsung.com>; Mon, 24 Nov 2014 22:12:36 +0900 (KST) From: Amit Daniel Kachhap To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH RFC v2 02/12] soc: exynos: Move exynos power domain file to driver/soc/samsung folder Date: Mon, 24 Nov 2014 18:34:06 +0530 Message-id: <1416834256-11225-2-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1416834256-11225-1-git-send-email-amit.daniel@samsung.com> References: <1416833572-6880-1-git-send-email-amit.daniel@samsung.com> <1416834256-11225-1-git-send-email-amit.daniel@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgkeLIzCtJLcpLzFFi42JZI2JSpXtErzjEYPEmHYuGqyEW84+cY7V4 dmsvk0XvgqtsFk83P2ay2PT4GqvF5V1z2Cw+9x5htJhxfh+TxaKtX9gtzpy+xGpx+E07q8Xx teEOvB6bVnWyedy5tofN49DhDkaPzUvqPbZcbWfx6NuyitHj8ya5APYoLpuU1JzMstQifbsE rozlrxaxFtwVqvg+5Tx7A+MW/i5GTg4JAROJ/7Pfs0DYYhIX7q1n62Lk4hASWMoo0XFtMStM 0e+5D1khEtMZJc5tvMkE4Uxgkpg2cQIzSBWbgLHEz5372bsYOThEBLwlll9TBKlhFljNJLG1 /QMTSFxYIF3izeoKkHIWAVWJTSd3gG3mFXCXeHbtBzNIiYSAgsScSTYgYU4BD4kXB1uYIVa1 MEpcejwX7AgJgWvsEm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3OB6aKvJJ4Q2MTc1NjU0sTCxMzSyVx3hs3c0OEBNITS1KzU1MLUotg+pg4OKUaGE2E lzTVbxePX/mLt+916if9jmvz1moXsq9fqZz86tVF8V0pqf7LHxs2pRanmkazasiv/pm/S2eP sj17Xm3b/I/HLRMyqtt/l+75+OYls/ep9TK7p6yUNbSZpjXz599XPodq8r+/Uvgt/vnvlFem ladEnhhbeyQ0R3/ZUB9cKvG36UBosc2+MiWW4oxEQy3mouJEAPavO1PdAgAA 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-20141124_051301_384325_F7AFA2D2 X-CRM114-Status: GOOD ( 10.23 ) X-Spam-Score: -5.0 (-----) Cc: devicetree@vger.kernel.org, ulf.hansson@linaro.org, kgene.kim@samsung.com, khilman@kernel.org, pankaj.dubey@samsung.com, linux-pm@vger.kernel.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, Amit Daniel Kachhap , geert@linux-m68k.org, s.nawrocki@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_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 moves arch/arm/mach-exynos/pm_domains.c to driver/soc/samsung folder. In this way it can be used for both arm and arm64 platforms. This file is moved in this directory as this driver is soc specific and only used by exynos platforms. Cc: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/Makefile | 1 - drivers/soc/samsung/Kconfig | 9 +++++++++ drivers/soc/samsung/Makefile | 3 ++- .../soc/samsung}/pm_domains.c | 0 4 files changed, 11 insertions(+), 2 deletions(-) rename {arch/arm/mach-exynos => drivers/soc/samsung}/pm_domains.c (100%) diff --git a/arch/arm/mach-exynos/pm_domains.c b/drivers/soc/samsung/pm_domains.c similarity index 100% rename from arch/arm/mach-exynos/pm_domains.c rename to drivers/soc/samsung/pm_domains.c diff --git a/arch/arm/mach-exynos/Makefile b/arch/arm/mach-exynos/Makefile index b91b382..9ea6c54 100644 --- a/arch/arm/mach-exynos/Makefile +++ b/arch/arm/mach-exynos/Makefile @@ -13,7 +13,6 @@ obj-$(CONFIG_ARCH_EXYNOS) += exynos.o exynos-smc.o firmware.o obj-$(CONFIG_EXYNOS_CPU_SUSPEND) += pm.o sleep.o obj-$(CONFIG_PM_SLEEP) += suspend.o -obj-$(CONFIG_PM_GENERIC_DOMAINS) += pm_domains.o obj-$(CONFIG_SMP) += platsmp.o headsmp.o diff --git a/drivers/soc/samsung/Kconfig b/drivers/soc/samsung/Kconfig index 6855cc4..2bb33e7 100644 --- a/drivers/soc/samsung/Kconfig +++ b/drivers/soc/samsung/Kconfig @@ -17,4 +17,13 @@ config EXYNOS_PMU functionality like initialisation and transition to various low power states. +config EXYNOS_POWER_DOMAIN + tristate "Support Exynos PM Power Domain" + depends on ARCH_EXYNOS && PM_GENERIC_DOMAINS + default y + help + Exynos SOC have power domain gating support. This driver implements + that functionality and registers all the necessary hooks to the + generic power domain core kernel infrastructure. + endmenu diff --git a/drivers/soc/samsung/Makefile b/drivers/soc/samsung/Makefile index 5a879c6..61ccd51 100644 --- a/drivers/soc/samsung/Makefile +++ b/drivers/soc/samsung/Makefile @@ -1 +1,2 @@ -obj-$(CONFIG_EXYNOS_PMU) += exynos-pmu.o +obj-$(CONFIG_EXYNOS_PMU) += exynos-pmu.o +obj-$(CONFIG_EXYNOS_POWER_DOMAIN) += pm_domains.o