aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/adreno
diff options
context:
space:
mode:
authorArchit Taneja <architt@codeaurora.org>2015-11-18 06:02:28 -0500
committerRob Clark <robdclark@gmail.com>2015-12-14 10:39:21 -0500
commit66a42f8586897c3a95ac2fef5e2ee1e69da695c8 (patch)
treed6bf17e4a4c502db701f75d118b493dd6885c429 /drivers/gpu/drm/msm/adreno
parent1fd6a4412c98a4bf89e1e583c5153c250aa24667 (diff)
drm/msm/adreno: Remove CONFIG_OF checks
Remove CONFIG_OF checks in adreno_device.c. The downstream bus scaling stuff is included only when CONFIG_OF is not set. So, remove that too. Signed-off-by: Archit Taneja <architt@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno')
-rw-r--r--drivers/gpu/drm/msm/adreno/adreno_device.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c
index 1ea2df524fac..950d27d26b30 100644
--- a/drivers/gpu/drm/msm/adreno/adreno_device.c
+++ b/drivers/gpu/drm/msm/adreno/adreno_device.c
@@ -19,10 +19,6 @@
19 19
20#include "adreno_gpu.h" 20#include "adreno_gpu.h"
21 21
22#if defined(DOWNSTREAM_CONFIG_MSM_BUS_SCALING) && !defined(CONFIG_OF)
23# include <mach/kgsl.h>
24#endif
25
26#define ANY_ID 0xff 22#define ANY_ID 0xff
27 23
28bool hang_debug = false; 24bool hang_debug = false;
@@ -168,7 +164,6 @@ static void set_gpu_pdev(struct drm_device *dev,
168static int adreno_bind(struct device *dev, struct device *master, void *data) 164static int adreno_bind(struct device *dev, struct device *master, void *data)
169{ 165{
170 static struct adreno_platform_config config = {}; 166 static struct adreno_platform_config config = {};
171#ifdef CONFIG_OF
172 struct device_node *child, *node = dev->of_node; 167 struct device_node *child, *node = dev->of_node;
173 u32 val; 168 u32 val;
174 int ret; 169 int ret;
@@ -205,53 +200,6 @@ static int adreno_bind(struct device *dev, struct device *master, void *data)
205 return -ENXIO; 200 return -ENXIO;
206 } 201 }
207 202
208#else
209 struct kgsl_device_platform_data *pdata = dev->platform_data;
210 uint32_t version = socinfo_get_version();
211 if (cpu_is_apq8064ab()) {
212 config.fast_rate = 450000000;
213 config.slow_rate = 27000000;
214 config.bus_freq = 4;
215 config.rev = ADRENO_REV(3, 2, 1, 0);
216 } else if (cpu_is_apq8064()) {
217 config.fast_rate = 400000000;
218 config.slow_rate = 27000000;
219 config.bus_freq = 4;
220
221 if (SOCINFO_VERSION_MAJOR(version) == 2)
222 config.rev = ADRENO_REV(3, 2, 0, 2);
223 else if ((SOCINFO_VERSION_MAJOR(version) == 1) &&
224 (SOCINFO_VERSION_MINOR(version) == 1))
225 config.rev = ADRENO_REV(3, 2, 0, 1);
226 else
227 config.rev = ADRENO_REV(3, 2, 0, 0);
228
229 } else if (cpu_is_msm8960ab()) {
230 config.fast_rate = 400000000;
231 config.slow_rate = 320000000;
232 config.bus_freq = 4;
233
234 if (SOCINFO_VERSION_MINOR(version) == 0)
235 config.rev = ADRENO_REV(3, 2, 1, 0);
236 else
237 config.rev = ADRENO_REV(3, 2, 1, 1);
238
239 } else if (cpu_is_msm8930()) {
240 config.fast_rate = 400000000;
241 config.slow_rate = 27000000;
242 config.bus_freq = 3;
243
244 if ((SOCINFO_VERSION_MAJOR(version) == 1) &&
245 (SOCINFO_VERSION_MINOR(version) == 2))
246 config.rev = ADRENO_REV(3, 0, 5, 2);
247 else
248 config.rev = ADRENO_REV(3, 0, 5, 0);
249
250 }
251# ifdef DOWNSTREAM_CONFIG_MSM_BUS_SCALING
252 config.bus_scale_table = pdata->bus_scale_table;
253# endif
254#endif
255 dev->platform_data = &config; 203 dev->platform_data = &config;
256 set_gpu_pdev(dev_get_drvdata(master), to_platform_device(dev)); 204 set_gpu_pdev(dev_get_drvdata(master), to_platform_device(dev));
257 return 0; 205 return 0;