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: 5213701 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 6BB00C11AC for ; Mon, 3 Nov 2014 04:02:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C510B20251 for ; Mon, 3 Nov 2014 04:02:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C1728201BB for ; Mon, 3 Nov 2014 04:02:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752392AbaKCECh (ORCPT ); Sun, 2 Nov 2014 23:02:37 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:18303 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197AbaKCECg (ORCPT ); Sun, 2 Nov 2014 23:02:36 -0500 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>; Mon, 03 Nov 2014 13:02:35 +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 Cc: kgene.kim@samsung.com, pankaj.dubey@samsung.com, Amit Daniel Kachhap 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/971reD8eYB60OMAhyMSjy8BdvDQoRYE8uKK3MPMZoCbZjILCWanA+M krySeENjMyMLUxNTYyNzSzMlcd4EqZ/BQgLpiSWp2ampBal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DgRALCwwtWlAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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