From patchwork Mon Nov 3 03:53:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 5213891 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 1221D9F380 for ; Mon, 3 Nov 2014 04:05:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2EB8B201E4 for ; Mon, 3 Nov 2014 04:05:08 +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 37183201BB for ; Mon, 3 Nov 2014 04:05:07 +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 1Xl8r6-00087U-4C; Mon, 03 Nov 2014 04:03:00 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xl8r2-0007qA-KH for linux-arm-kernel@lists.infradead.org; Mon, 03 Nov 2014 04:02:57 +0000 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEG00LYT38A9720@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 03 Nov 2014 13:02:34 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 2F.0B.11124.A5EF6545; Mon, 03 Nov 2014 13:02:34 +0900 (KST) X-AuditID: cbfee68e-f79b46d000002b74-f1-5456fe5a58fe Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6E.F8.20081.A5EF6545; Mon, 03 Nov 2014 13:02:34 +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 <0NEG00BUJ320LR40@mmp2.samsung.com>; Mon, 03 Nov 2014 13:02:34 +0900 (KST) From: Amit Daniel Kachhap To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 06/12] soc: exynos: Move exynos power domain file to driver/soc/samsung folder Date: Mon, 03 Nov 2014 09:23:04 +0530 Message-id: <1414986790-11940-7-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1414986790-11940-1-git-send-email-amit.daniel@samsung.com> References: <1414986790-11940-1-git-send-email-amit.daniel@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOLMWRmVeSWpSXmKPExsWyRsSkRjfqX1iIwZJTlhYNV0MsehdcZbPY 9Pgaq8Xn3iOMFjPO72OyWLT1C7sDm8fmJfUefVtWMXp83iQXwBzFZZOSmpNZllqkb5fAlfFh 8y6WgkbJijMPOtgbGDeLdDFyckgImEjs3byFCcIWk7hwbz1bFyMXh5DAUkaJ/gezmbsYOcCK XpwUh4hPZ5RoWNvPBOFMYJJ43H+dDaSbTcBY4ufO/ewgtohAusSaRbvB4swCKRKXp3cwgQwS FkiQuPDXCyTMIqAqcW31H2YQm1fAXWLl/h5GiF0KEnMm2YCEOQU8JE72XWcFsYWASia9ew51 5382ie1rqiDGCEh8m3yIBaJVVmLTAWaIEkmJgytusExgFF7AyLCKUTS1ILmgOCm9yEivODG3 uDQvXS85P3cTIzB8T/971reD8eYB60OMAhyMSjy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uTldKStmiOxm29bPc+LVxpbGkeL5fadFU5MrZzTnf+ NC+Fl/5Wj/KYr3tN2BS8VYmlOCPRUIu5qDgRALCwwtWlAgAA 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-20141102_200256_817847_46AA24E8 X-CRM114-Status: GOOD ( 12.31 ) X-Spam-Score: -5.6 (-----) Cc: pankaj.dubey@samsung.com, Amit Daniel Kachhap , kgene.kim@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.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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. This will be useful to use it 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 Reviewed-by: Pankaj Dubey Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/Makefile | 1 - drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/samsung/Kconfig | 11 +++++++++++ drivers/soc/samsung/Makefile | 1 + .../soc/samsung}/pm_domains.c | 0 6 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 drivers/soc/samsung/Kconfig create mode 100644 drivers/soc/samsung/Makefile 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/Kconfig b/drivers/soc/Kconfig index 76d6bd4..90f33b9 100644 --- a/drivers/soc/Kconfig +++ b/drivers/soc/Kconfig @@ -3,5 +3,6 @@ menu "SOC (System On Chip) specific Drivers" source "drivers/soc/qcom/Kconfig" source "drivers/soc/ti/Kconfig" source "drivers/soc/versatile/Kconfig" +source "drivers/soc/samsung/Kconfig" endmenu diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile index 063113d..44d220d 100644 --- a/drivers/soc/Makefile +++ b/drivers/soc/Makefile @@ -6,3 +6,4 @@ obj-$(CONFIG_ARCH_QCOM) += qcom/ obj-$(CONFIG_ARCH_TEGRA) += tegra/ obj-$(CONFIG_SOC_TI) += ti/ obj-$(CONFIG_PLAT_VERSATILE) += versatile/ +obj-$(CONFIG_ARCH_EXYNOS) += samsung/ diff --git a/drivers/soc/samsung/Kconfig b/drivers/soc/samsung/Kconfig new file mode 100644 index 0000000..1dc6a35 --- /dev/null +++ b/drivers/soc/samsung/Kconfig @@ -0,0 +1,11 @@ +# +# Samsung Soc drivers +# +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. diff --git a/drivers/soc/samsung/Makefile b/drivers/soc/samsung/Makefile new file mode 100644 index 0000000..f4efce7 --- /dev/null +++ b/drivers/soc/samsung/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_EXYNOS_POWER_DOMAIN) += pm_domains.o