diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-10-20 16:33:54 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2017-10-20 16:33:54 -0400 |
commit | ea9e3fbc1748ac4805350778768e3ad801ade5f7 (patch) | |
tree | af03d48055ecfefd51f2c1cfb470c7b4550b6172 | |
parent | 6710acf2596a29f7351e8165d981645f403e0025 (diff) | |
parent | c40610198f35e8264f9175dafe74db6288a07eda (diff) |
Merge tag 'samsung-drivers-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into next/drivers
Pull "Samsung soc drivers changes for v4.15" from Krzysztof Kozłowski:
Remove of Exynos4212 related dead code (no more support for this SoC).
* tag 'samsung-drivers-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
soc: samsung: Remove Exynos4212 related dead code
-rw-r--r-- | Documentation/devicetree/bindings/arm/samsung/pmu.txt | 1 | ||||
-rw-r--r-- | drivers/soc/samsung/exynos-pmu.c | 9 | ||||
-rw-r--r-- | drivers/soc/samsung/exynos-pmu.h | 2 | ||||
-rw-r--r-- | drivers/soc/samsung/exynos4-pmu.c | 13 |
4 files changed, 2 insertions, 23 deletions
diff --git a/Documentation/devicetree/bindings/arm/samsung/pmu.txt b/Documentation/devicetree/bindings/arm/samsung/pmu.txt index bf5fc59a6938..87ed95512b63 100644 --- a/Documentation/devicetree/bindings/arm/samsung/pmu.txt +++ b/Documentation/devicetree/bindings/arm/samsung/pmu.txt | |||
@@ -4,7 +4,6 @@ Properties: | |||
4 | - compatible : should contain two values. First value must be one from following list: | 4 | - compatible : should contain two values. First value must be one from following list: |
5 | - "samsung,exynos3250-pmu" - for Exynos3250 SoC, | 5 | - "samsung,exynos3250-pmu" - for Exynos3250 SoC, |
6 | - "samsung,exynos4210-pmu" - for Exynos4210 SoC, | 6 | - "samsung,exynos4210-pmu" - for Exynos4210 SoC, |
7 | - "samsung,exynos4212-pmu" - for Exynos4212 SoC, | ||
8 | - "samsung,exynos4412-pmu" - for Exynos4412 SoC, | 7 | - "samsung,exynos4412-pmu" - for Exynos4412 SoC, |
9 | - "samsung,exynos5250-pmu" - for Exynos5250 SoC, | 8 | - "samsung,exynos5250-pmu" - for Exynos5250 SoC, |
10 | - "samsung,exynos5260-pmu" - for Exynos5260 SoC. | 9 | - "samsung,exynos5260-pmu" - for Exynos5260 SoC. |
diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c index bd4a76f27bc2..938f8ccfcb74 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c | |||
@@ -60,12 +60,6 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode) | |||
60 | 60 | ||
61 | if (pmu_data->powerdown_conf_extra) | 61 | if (pmu_data->powerdown_conf_extra) |
62 | pmu_data->powerdown_conf_extra(mode); | 62 | pmu_data->powerdown_conf_extra(mode); |
63 | |||
64 | if (pmu_data->pmu_config_extra) { | ||
65 | for (i = 0; pmu_data->pmu_config_extra[i].offset != PMU_TABLE_END; i++) | ||
66 | pmu_raw_writel(pmu_data->pmu_config_extra[i].val[mode], | ||
67 | pmu_data->pmu_config_extra[i].offset); | ||
68 | } | ||
69 | } | 63 | } |
70 | 64 | ||
71 | /* | 65 | /* |
@@ -89,9 +83,6 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = { | |||
89 | .compatible = "samsung,exynos4210-pmu", | 83 | .compatible = "samsung,exynos4210-pmu", |
90 | .data = exynos_pmu_data_arm_ptr(exynos4210_pmu_data), | 84 | .data = exynos_pmu_data_arm_ptr(exynos4210_pmu_data), |
91 | }, { | 85 | }, { |
92 | .compatible = "samsung,exynos4212-pmu", | ||
93 | .data = exynos_pmu_data_arm_ptr(exynos4212_pmu_data), | ||
94 | }, { | ||
95 | .compatible = "samsung,exynos4412-pmu", | 86 | .compatible = "samsung,exynos4412-pmu", |
96 | .data = exynos_pmu_data_arm_ptr(exynos4412_pmu_data), | 87 | .data = exynos_pmu_data_arm_ptr(exynos4412_pmu_data), |
97 | }, { | 88 | }, { |
diff --git a/drivers/soc/samsung/exynos-pmu.h b/drivers/soc/samsung/exynos-pmu.h index 40d4229abfb5..86b3f2f8966d 100644 --- a/drivers/soc/samsung/exynos-pmu.h +++ b/drivers/soc/samsung/exynos-pmu.h | |||
@@ -23,7 +23,6 @@ struct exynos_pmu_conf { | |||
23 | 23 | ||
24 | struct exynos_pmu_data { | 24 | struct exynos_pmu_data { |
25 | const struct exynos_pmu_conf *pmu_config; | 25 | const struct exynos_pmu_conf *pmu_config; |
26 | const struct exynos_pmu_conf *pmu_config_extra; | ||
27 | 26 | ||
28 | void (*pmu_init)(void); | 27 | void (*pmu_init)(void); |
29 | void (*powerdown_conf)(enum sys_powerdown); | 28 | void (*powerdown_conf)(enum sys_powerdown); |
@@ -36,7 +35,6 @@ extern void __iomem *pmu_base_addr; | |||
36 | /* list of all exported SoC specific data */ | 35 | /* list of all exported SoC specific data */ |
37 | extern const struct exynos_pmu_data exynos3250_pmu_data; | 36 | extern const struct exynos_pmu_data exynos3250_pmu_data; |
38 | extern const struct exynos_pmu_data exynos4210_pmu_data; | 37 | extern const struct exynos_pmu_data exynos4210_pmu_data; |
39 | extern const struct exynos_pmu_data exynos4212_pmu_data; | ||
40 | extern const struct exynos_pmu_data exynos4412_pmu_data; | 38 | extern const struct exynos_pmu_data exynos4412_pmu_data; |
41 | extern const struct exynos_pmu_data exynos5250_pmu_data; | 39 | extern const struct exynos_pmu_data exynos5250_pmu_data; |
42 | extern const struct exynos_pmu_data exynos5420_pmu_data; | 40 | extern const struct exynos_pmu_data exynos5420_pmu_data; |
diff --git a/drivers/soc/samsung/exynos4-pmu.c b/drivers/soc/samsung/exynos4-pmu.c index bc4fa73bed11..5dbfe4e31f4c 100644 --- a/drivers/soc/samsung/exynos4-pmu.c +++ b/drivers/soc/samsung/exynos4-pmu.c | |||
@@ -90,7 +90,7 @@ static const struct exynos_pmu_conf exynos4210_pmu_config[] = { | |||
90 | { PMU_TABLE_END,}, | 90 | { PMU_TABLE_END,}, |
91 | }; | 91 | }; |
92 | 92 | ||
93 | static const struct exynos_pmu_conf exynos4x12_pmu_config[] = { | 93 | static const struct exynos_pmu_conf exynos4412_pmu_config[] = { |
94 | { S5P_ARM_CORE0_LOWPWR, { 0x0, 0x0, 0x2 } }, | 94 | { S5P_ARM_CORE0_LOWPWR, { 0x0, 0x0, 0x2 } }, |
95 | { S5P_DIS_IRQ_CORE0, { 0x0, 0x0, 0x0 } }, | 95 | { S5P_DIS_IRQ_CORE0, { 0x0, 0x0, 0x0 } }, |
96 | { S5P_DIS_IRQ_CENTRAL0, { 0x0, 0x0, 0x0 } }, | 96 | { S5P_DIS_IRQ_CENTRAL0, { 0x0, 0x0, 0x0 } }, |
@@ -195,10 +195,6 @@ static const struct exynos_pmu_conf exynos4x12_pmu_config[] = { | |||
195 | { S5P_GPS_ALIVE_LOWPWR, { 0x7, 0x0, 0x0 } }, | 195 | { S5P_GPS_ALIVE_LOWPWR, { 0x7, 0x0, 0x0 } }, |
196 | { S5P_CMU_SYSCLK_ISP_LOWPWR, { 0x1, 0x0, 0x0 } }, | 196 | { S5P_CMU_SYSCLK_ISP_LOWPWR, { 0x1, 0x0, 0x0 } }, |
197 | { S5P_CMU_SYSCLK_GPS_LOWPWR, { 0x1, 0x0, 0x0 } }, | 197 | { S5P_CMU_SYSCLK_GPS_LOWPWR, { 0x1, 0x0, 0x0 } }, |
198 | { PMU_TABLE_END,}, | ||
199 | }; | ||
200 | |||
201 | static const struct exynos_pmu_conf exynos4412_pmu_config[] = { | ||
202 | { S5P_ARM_CORE2_LOWPWR, { 0x0, 0x0, 0x2 } }, | 198 | { S5P_ARM_CORE2_LOWPWR, { 0x0, 0x0, 0x2 } }, |
203 | { S5P_DIS_IRQ_CORE2, { 0x0, 0x0, 0x0 } }, | 199 | { S5P_DIS_IRQ_CORE2, { 0x0, 0x0, 0x0 } }, |
204 | { S5P_DIS_IRQ_CENTRAL2, { 0x0, 0x0, 0x0 } }, | 200 | { S5P_DIS_IRQ_CENTRAL2, { 0x0, 0x0, 0x0 } }, |
@@ -212,11 +208,6 @@ const struct exynos_pmu_data exynos4210_pmu_data = { | |||
212 | .pmu_config = exynos4210_pmu_config, | 208 | .pmu_config = exynos4210_pmu_config, |
213 | }; | 209 | }; |
214 | 210 | ||
215 | const struct exynos_pmu_data exynos4212_pmu_data = { | ||
216 | .pmu_config = exynos4x12_pmu_config, | ||
217 | }; | ||
218 | |||
219 | const struct exynos_pmu_data exynos4412_pmu_data = { | 211 | const struct exynos_pmu_data exynos4412_pmu_data = { |
220 | .pmu_config = exynos4x12_pmu_config, | 212 | .pmu_config = exynos4412_pmu_config, |
221 | .pmu_config_extra = exynos4412_pmu_config, | ||
222 | }; | 213 | }; |