ipq806x: Add support for IPQ806x chip family
[openwrt/openwrt.git] / target / linux / ipq806x / patches / 0162-PM-OPP-Remove-ARCH_HAS_OPP.patch
1 From 18e4542f7b02f586d46594977818cd6b24d9cbcb Mon Sep 17 00:00:00 2001
2 From: Mark Brown <broonie@linaro.org>
3 Date: Fri, 6 Jun 2014 11:36:56 +0100
4 Subject: [PATCH 162/182] PM / OPP: Remove ARCH_HAS_OPP
5
6 Since the OPP layer is a kernel library which has been converted to be
7 directly selectable by its callers rather than user selectable and
8 requiring architectures to enable it explicitly the ARCH_HAS_OPP symbol
9 has become redundant and can be removed. Do so.
10
11 Signed-off-by: Mark Brown <broonie@linaro.org>
12 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
13 ---
14 Documentation/power/opp.txt | 3 ---
15 arch/arm/mach-exynos/Kconfig | 1 -
16 arch/arm/mach-highbank/Kconfig | 1 -
17 arch/arm/mach-omap2/Kconfig | 1 -
18 arch/arm/mach-shmobile/Kconfig | 2 --
19 arch/arm/mach-vexpress/Kconfig | 1 -
20 drivers/devfreq/Kconfig | 1 -
21 kernel/power/Kconfig | 3 ---
22 8 files changed, 13 deletions(-)
23
24 diff --git a/Documentation/power/opp.txt b/Documentation/power/opp.txt
25 index b8a907d..7b6a021 100644
26 --- a/Documentation/power/opp.txt
27 +++ b/Documentation/power/opp.txt
28 @@ -52,9 +52,6 @@ Typical usage of the OPP library is as follows:
29 SoC framework -> modifies on required cases certain OPPs -> OPP layer
30 -> queries to search/retrieve information ->
31
32 -Architectures that provide a SoC framework for OPP should select ARCH_HAS_OPP
33 -to make the OPP layer available.
34 -
35 OPP layer expects each domain to be represented by a unique device pointer. SoC
36 framework registers a set of initial OPPs per device with the OPP layer. This
37 list is expected to be an optimally small number typically around 5 per device.
38 diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
39 index 4c414af..67e69a8 100644
40 --- a/arch/arm/mach-exynos/Kconfig
41 +++ b/arch/arm/mach-exynos/Kconfig
42 @@ -107,7 +107,6 @@ config SOC_EXYNOS5440
43 depends on ARCH_EXYNOS5
44 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
45 select ARCH_HAS_BANDGAP
46 - select ARCH_HAS_OPP
47 select HAVE_ARM_ARCH_TIMER
48 select AUTO_ZRELADDR
49 select MIGHT_HAVE_PCI
50 diff --git a/arch/arm/mach-highbank/Kconfig b/arch/arm/mach-highbank/Kconfig
51 index 9f74755..43bd782 100644
52 --- a/arch/arm/mach-highbank/Kconfig
53 +++ b/arch/arm/mach-highbank/Kconfig
54 @@ -2,7 +2,6 @@ config ARCH_HIGHBANK
55 bool "Calxeda ECX-1000/2000 (Highbank/Midway)" if ARCH_MULTI_V7
56 select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
57 select ARCH_HAS_HOLES_MEMORYMODEL
58 - select ARCH_HAS_OPP
59 select ARCH_SUPPORTS_BIG_ENDIAN
60 select ARCH_WANT_OPTIONAL_GPIOLIB
61 select ARM_AMBA
62 diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
63 index 0674cb7..3e6596c 100644
64 --- a/arch/arm/mach-omap2/Kconfig
65 +++ b/arch/arm/mach-omap2/Kconfig
66 @@ -13,7 +13,6 @@ config ARCH_OMAP3
67 bool "TI OMAP3"
68 depends on ARCH_MULTI_V7
69 select ARCH_OMAP2PLUS
70 - select ARCH_HAS_OPP
71 select ARM_CPU_SUSPEND if PM
72 select CPU_V7
73 select MULTI_IRQ_HANDLER
74 diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
75 index 61d4d31..9fc2dd2 100644
76 --- a/arch/arm/mach-shmobile/Kconfig
77 +++ b/arch/arm/mach-shmobile/Kconfig
78 @@ -85,7 +85,6 @@ config ARCH_R8A73A4
79 select CPU_V7
80 select SH_CLK_CPG
81 select RENESAS_IRQC
82 - select ARCH_HAS_OPP
83
84 config ARCH_R8A7740
85 bool "R-Mobile A1 (R8A77400)"
86 @@ -270,7 +269,6 @@ config MACH_KOELSCH
87 config MACH_KZM9G
88 bool "KZM-A9-GT board"
89 depends on ARCH_SH73A0
90 - select ARCH_HAS_OPP
91 select ARCH_REQUIRE_GPIOLIB
92 select REGULATOR_FIXED_VOLTAGE if REGULATOR
93 select SND_SOC_AK4642 if SND_SIMPLE_CARD
94 diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig
95 index ca5b7e5..4ed6e97 100644
96 --- a/arch/arm/mach-vexpress/Kconfig
97 +++ b/arch/arm/mach-vexpress/Kconfig
98 @@ -67,7 +67,6 @@ config ARCH_VEXPRESS_DCSCB
99
100 config ARCH_VEXPRESS_SPC
101 bool "Versatile Express Serial Power Controller (SPC)"
102 - select ARCH_HAS_OPP
103 select PM_OPP
104 help
105 The TC2 (A15x2 A7x3) versatile express core tile integrates a logic
106 diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig
107 index 7d2f435..d416754 100644
108 --- a/drivers/devfreq/Kconfig
109 +++ b/drivers/devfreq/Kconfig
110 @@ -68,7 +68,6 @@ comment "DEVFREQ Drivers"
111 config ARM_EXYNOS4_BUS_DEVFREQ
112 bool "ARM Exynos4210/4212/4412 Memory Bus DEVFREQ Driver"
113 depends on (CPU_EXYNOS4210 || SOC_EXYNOS4212 || SOC_EXYNOS4412) && !ARCH_MULTIPLATFORM
114 - select ARCH_HAS_OPP
115 select DEVFREQ_GOV_SIMPLE_ONDEMAND
116 help
117 This adds the DEVFREQ driver for Exynos4210 memory bus (vdd_int)
118 diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
119 index 2fac9cc..caa040c 100644
120 --- a/kernel/power/Kconfig
121 +++ b/kernel/power/Kconfig
122 @@ -253,9 +253,6 @@ config APM_EMULATION
123 anything, try disabling/enabling this option (or disabling/enabling
124 APM in your BIOS).
125
126 -config ARCH_HAS_OPP
127 - bool
128 -
129 config PM_OPP
130 bool "Operating Performance Point (OPP) Layer library"
131 depends on ARCH_HAS_OPP
132 --
133 1.7.10.4
134