From patchwork Wed Jan 25 11:55:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92448 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2171728qgi; Wed, 25 Jan 2017 03:56:07 -0800 (PST) X-Received: by 10.99.97.196 with SMTP id v187mr46237535pgb.175.1485345367060; Wed, 25 Jan 2017 03:56:07 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si23207594pfx.154.2017.01.25.03.56.06; Wed, 25 Jan 2017 03:56:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751433AbdAYL4F (ORCPT + 4 others); Wed, 25 Jan 2017 06:56:05 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57742 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751405AbdAYL4D (ORCPT ); Wed, 25 Jan 2017 06:56:03 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKC00EIH3TDG110@mailout2.w1.samsung.com>; Wed, 25 Jan 2017 11:56:01 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170125115600eucas1p1012df32e2c2532dc4bcc8b487f17c1c6~dAbxTuj-Y1144811448eucas1p1z; Wed, 25 Jan 2017 11:56:00 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 33.51.17477.05298885; Wed, 25 Jan 2017 11:56:00 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170125115559eucas1p22d097adf456c6854c73d1bac9632776c~dAbwbdEOz0889908899eucas1p2y; Wed, 25 Jan 2017 11:55:59 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d000004445-ea-58889250685e Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 68.4F.10233.C4298885; Wed, 25 Jan 2017 11:55:56 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKC001MA3T6B7A0@eusync2.samsung.com>; Wed, 25 Jan 2017 11:55:59 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Chanwoo Choi , Inki Dae , Jonghwa Lee Subject: [PATCH 1/8] soc: samsung: pm_domains: Add new exynos5433 compatible Date: Wed, 25 Jan 2017 12:55:35 +0100 Message-id: <1485345342-3273-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485345342-3273-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJIsWRmVeSWpSXmKPExsWy7djPc7oBkzoiDCYu5rXYOGM9q8X1L89Z LSbdn8Bi0Xn2CbPF+fMb2C0+9x5htJhxfh+Txdojd9ktDr9pZ3Xg9Ni0qpPNo2/LKkaPz5vk ApijuGxSUnMyy1KL9O0SuDIe/rjIUrCav+LU5D3MDYyveboYOTkkBEwk2j5PZYawxSQu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Sp85tYIZYJydx8thkVhCbU8BDoutpP1iNEFDN1JtrWSYw8i5gZFjF KJJaWpybnltspFecmFtcmpeul5yfu4kRGM7bjv3csoOx613wIUYBDkYlHt4JSe0RQqyJZcWV uYcYJTiYlUR4HVo6IoR4UxIrq1KL8uOLSnNSiw8xmgIdNZFZSjQ5HxhreSXxhiaG5paGRsYW FuZGRkrivFM/XAkXEkhPLEnNTk0tSC2C6WPi4JRqYCyYz8Y5ccNV8+3vS37ceqa44u68I20c GYL+LdGra9X7ZxfLTFp6uD7AMPHNt0P8bnvsD2+b9cNXqd17z9OE4+tmzzG7Es27d2+ryc8i 39sCKqLFrFps/jt71+/YvsJAWKr1eKgk84Fvqxxv3MtnmbTYb/rblvUrv86UzWH8ZpVvyHmz 75C68z4lluKMREMt5qLiRAB/lEfSfQIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170125115559eucas1p22d097adf456c6854c73d1bac9632776c X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170125115559eucas1p22d097adf456c6854c73d1bac9632776c X-RootMTR: 20170125115559eucas1p22d097adf456c6854c73d1bac9632776c References: <1485345342-3273-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Chanwoo Choi This patch adds the new compatible string for exynos5433 because the exynos5433 use the '0xf' value to turn on and off instead of '0x7'. Signed-off-by: Jonghwa Lee Signed-off-by: Chanwoo Choi Signed-off-by: Marek Szyprowski --- Documentation/devicetree/bindings/power/pd-samsung.txt | 1 + drivers/soc/samsung/pm_domains.c | 7 +++++++ 2 files changed, 8 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/power/pd-samsung.txt b/Documentation/devicetree/bindings/power/pd-samsung.txt index 76df656be618..fb08c8d62733 100644 --- a/Documentation/devicetree/bindings/power/pd-samsung.txt +++ b/Documentation/devicetree/bindings/power/pd-samsung.txt @@ -6,6 +6,7 @@ to gate power to one or more peripherals on the processor. Required Properties: - compatible: should be one of the following. * samsung,exynos4210-pd - for exynos4210 type power domain. + * samsung,exynos5433-pd - for exynos5433 type power domain. - reg: physical base address of the controller and length of memory mapped region. - #power-domain-cells: number of cells in power domain specifier; diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c index 7112004b8032..15bad1543409 100644 --- a/drivers/soc/samsung/pm_domains.c +++ b/drivers/soc/samsung/pm_domains.c @@ -128,10 +128,17 @@ static int exynos_pd_power_off(struct generic_pm_domain *domain) .local_pwr_cfg = 0x7, }; +static const struct exynos_pm_domain_config exynos5433_cfg __initconst = { + .local_pwr_cfg = 0xf, +}; + static const struct of_device_id exynos_pm_domain_of_match[] __initconst = { { .compatible = "samsung,exynos4210-pd", .data = &exynos4210_cfg, + }, { + .compatible = "samsung,exynos5433-pd", + .data = &exynos5433_cfg, }, { }, };