[1/8] soc: samsung: pm_domains: Add new exynos5433 compatible

Message ID 1485345342-3273-2-git-send-email-m.szyprowski@samsung.com
State New
Headers show
Series
  • Power domains support for Exynos5433 SoCs
Related show

Commit Message

Marek Szyprowski Jan. 25, 2017, 11:55 a.m.
From: Chanwoo Choi <cw00.choi@samsung.com>


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 <jonghwa3.lee@samsung.com>

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

---
 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

Comments

Krzysztof Kozlowski Jan. 27, 2017, 7:42 a.m. | #1
On Wed, Jan 25, 2017 at 12:55:35PM +0100, Marek Szyprowski wrote:
> From: Chanwoo Choi <cw00.choi@samsung.com>

> 

> 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 <jonghwa3.lee@samsung.com>

> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

> ---

>  Documentation/devicetree/bindings/power/pd-samsung.txt | 1 +

>  drivers/soc/samsung/pm_domains.c                       | 7 +++++++

>  2 files changed, 8 insertions(+)

>


Applied with commit msg changes.

Best regards,
Krzysztof

--
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

Patch hide | download patch | download mbox

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,
 	},
 	{ },
 };