diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2017-01-25 06:55:35 -0500 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2017-01-27 02:38:54 -0500 |
commit | 6bce1974f64aba108ad344cb2ef0110d9c09ebd2 (patch) | |
tree | aee0b17029be9d48048e460bc4036c1ce64185c1 | |
parent | fa59aa70907b2e5c08f58d63ed7c1e5017e39301 (diff) |
soc: samsung: pm_domains: Add new Exynos5433 compatible
Add a new compatible string for Exynos5433 because it uses the 0xf
value instead of 0x7 for domain on/off registers.
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>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/power/pd-samsung.txt | 1 | ||||
-rw-r--r-- | drivers/soc/samsung/pm_domains.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/pd-samsung.txt b/Documentation/devicetree/bindings/power/pd-samsung.txt index 4e947372a693..f5d4b68d2760 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. | |||
6 | Required Properties: | 6 | Required Properties: |
7 | - compatible: should be one of the following. | 7 | - compatible: should be one of the following. |
8 | * samsung,exynos4210-pd - for exynos4210 type power domain. | 8 | * samsung,exynos4210-pd - for exynos4210 type power domain. |
9 | * samsung,exynos5433-pd - for exynos5433 type power domain. | ||
9 | - reg: physical base address of the controller and length of memory mapped | 10 | - reg: physical base address of the controller and length of memory mapped |
10 | region. | 11 | region. |
11 | - #power-domain-cells: number of cells in power domain specifier; | 12 | - #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 const struct exynos_pm_domain_config exynos4210_cfg __initconst = { | |||
128 | .local_pwr_cfg = 0x7, | 128 | .local_pwr_cfg = 0x7, |
129 | }; | 129 | }; |
130 | 130 | ||
131 | static const struct exynos_pm_domain_config exynos5433_cfg __initconst = { | ||
132 | .local_pwr_cfg = 0xf, | ||
133 | }; | ||
134 | |||
131 | static const struct of_device_id exynos_pm_domain_of_match[] __initconst = { | 135 | static const struct of_device_id exynos_pm_domain_of_match[] __initconst = { |
132 | { | 136 | { |
133 | .compatible = "samsung,exynos4210-pd", | 137 | .compatible = "samsung,exynos4210-pd", |
134 | .data = &exynos4210_cfg, | 138 | .data = &exynos4210_cfg, |
139 | }, { | ||
140 | .compatible = "samsung,exynos5433-pd", | ||
141 | .data = &exynos5433_cfg, | ||
135 | }, | 142 | }, |
136 | { }, | 143 | { }, |
137 | }; | 144 | }; |